changeset 419:3ed71e63f64c

imported patch import-cleanup
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Thu, 11 Jun 2009 18:57:55 +0200
parents 92beeefeaf93
children 59e19c73b0df
files hgsubversion/svncommands.py hgsubversion/svnrepo.py hgsubversion/util.py hgsubversion/wrappers.py
diffstat 4 files changed, 1 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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]
--- 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
 
--- a/hgsubversion/util.py
+++ b/hgsubversion/util.py
@@ -1,5 +1,4 @@
 import os
-import shutil
 
 from mercurial import hg
 from mercurial import node
--- 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