[PATCH 1 of 2] largefiles: tidy imports

Greg Ward greg at gerg.ca
Tue Oct 18 18:48:56 CDT 2011


# HG changeset patch
# User Greg Ward <greg at gerg.ca>
# Date 1318775391 14400
# Branch stable
# Node ID 16b1a228f85d9759f9a06384b269e4b47f6e9945
# Parent  4b71c17caeb8ceb8e847d48eaad0a05fd9c9c2f6
largefiles: tidy imports

- no need to defensively import scmutil
- remove duplicate
- unwrap non-long line

diff --git a/hgext/largefiles/overrides.py b/hgext/largefiles/overrides.py
--- a/hgext/largefiles/overrides.py
+++ b/hgext/largefiles/overrides.py
@@ -11,17 +11,11 @@
 import os
 import copy
 
-from mercurial import hg, commands, util, cmdutil, match as match_, node, \
-        archival, error, merge
+from mercurial import hg, commands, util, cmdutil, scmutil, match as match_, \
+    node, archival, error, merge
 from mercurial.i18n import _
 from mercurial.node import hex
 from hgext import rebase
-import lfutil
-
-try:
-    from mercurial import scmutil
-except ImportError:
-    pass
 
 import lfutil
 import lfcommands
diff --git a/hgext/largefiles/reposetup.py b/hgext/largefiles/reposetup.py
--- a/hgext/largefiles/reposetup.py
+++ b/hgext/largefiles/reposetup.py
@@ -12,8 +12,7 @@
 import os
 import re
 
-from mercurial import context, error, manifest, match as match_, \
-        node, util
+from mercurial import context, error, manifest, match as match_, node, util
 from mercurial.i18n import _
 
 import lfcommands


More information about the Mercurial-devel mailing list