# HG changeset patch # User Dirkjan Ochtman # Date 1244739475 -7200 # Node ID 3ed71e63f64c610392c276096fb0c3812f1c4e07 # Parent 92beeefeaf936eab5e97efe1366df834e7ad4fbd imported patch import-cleanup diff --git a/hgsubversion/svncommands.py b/hgsubversion/svncommands.py --- a/hgsubversion/svncommands.py +++ b/hgsubversion/svncommands.py @@ -66,6 +66,7 @@ def rebuildmeta(ui, repo, hg_repo_path, """rebuild hgsubversion metadata using values stored in revisions """ if len(args) != 1: + dest = args[0] url = repo.ui.expandpath(dest or 'default-push', dest or 'default') else: url = args[0] diff --git a/hgsubversion/svnrepo.py b/hgsubversion/svnrepo.py --- a/hgsubversion/svnrepo.py +++ b/hgsubversion/svnrepo.py @@ -15,12 +15,10 @@ subclass: pull() is called on the instan """ from mercurial import error -from mercurial import node from mercurial import util as hgutil from mercurial import httprepo import mercurial.repo -import hg_delta_editor import util import wrappers diff --git a/hgsubversion/util.py b/hgsubversion/util.py --- a/hgsubversion/util.py +++ b/hgsubversion/util.py @@ -1,5 +1,4 @@ import os -import shutil from mercurial import hg from mercurial import node diff --git a/hgsubversion/wrappers.py b/hgsubversion/wrappers.py --- a/hgsubversion/wrappers.py +++ b/hgsubversion/wrappers.py @@ -1,9 +1,6 @@ -import os - from hgext import rebase as hgrebase from mercurial import cmdutil as hgcmdutil -from mercurial import commands from mercurial import patch from mercurial import hg from mercurial import util as hgutil