[PATCH] largefiles: cleanup import, now that we can assume > 1.9 for bundled extension

Na'Tosha Bard natosha at unity3d.com
Tue Oct 11 07:04:54 CDT 2011


# HG changeset patch
# User Na'Tosha Bard <natosha at unity3d.com>
# Date 1318334484 -7200
# Node ID b51b04e5ec650b96e5643a9d02e4aaac7be077f3
# Parent  6239317b6ae0d69b7937b1b663a8837138989fbb
largefiles: cleanup import, now that we can assume > 1.9 for bundled extension

diff -r 6239317b6ae0 -r b51b04e5ec65 hgext/largefiles/lfutil.py
--- a/hgext/largefiles/lfutil.py	Tue Oct 11 13:15:29 2011 +0200
+++ b/hgext/largefiles/lfutil.py	Tue Oct 11 14:01:24 2011 +0200
@@ -16,14 +16,9 @@
 import hashlib
 
 from mercurial import cmdutil, dirstate, httpconnection, match as match_, \
-        url as url_, util
+        url as url_, util, scmutil
 from mercurial.i18n import _
 
-try:
-    from mercurial import scmutil
-except ImportError:
-    pass
-
 shortname = '.hglf'
 longname = 'largefiles'
 


More information about the Mercurial-devel mailing list