tests/pullext.py
branchstable
changeset 43306 59338f956109
parent 43076 2372284d9457
child 43506 9f70512ae2cf
--- a/tests/pullext.py	Wed Oct 02 12:20:36 2019 -0400
+++ b/tests/pullext.py	Mon Oct 21 11:09:48 2019 -0400
@@ -13,8 +13,9 @@
     error,
     extensions,
     localrepo,
-    repository,
 )
+from mercurial.interfaces import repository
+
 
 def clonecommand(orig, ui, repo, *args, **kwargs):
     if kwargs.get(r'include') or kwargs.get(r'exclude'):
@@ -28,9 +29,11 @@
 
     return orig(ui, repo, *args, **kwargs)
 
+
 def featuresetup(ui, features):
     features.add(repository.NARROW_REQUIREMENT)
 
+
 def extsetup(ui):
     entry = extensions.wrapcommand(commands.table, b'clone', clonecommand)
 
@@ -38,13 +41,16 @@
     hasdepth = any(x[1] == b'depth' for x in entry[1])
 
     if not hasinclude:
-        entry[1].append((b'', b'include', [],
-                         _(b'pattern of file/directory to clone')))
-        entry[1].append((b'', b'exclude', [],
-                         _(b'pattern of file/directory to not clone')))
+        entry[1].append(
+            (b'', b'include', [], _(b'pattern of file/directory to clone'))
+        )
+        entry[1].append(
+            (b'', b'exclude', [], _(b'pattern of file/directory to not clone'))
+        )
 
     if not hasdepth:
-        entry[1].append((b'', b'depth', b'',
-                         _(b'ancestry depth of changesets to fetch')))
+        entry[1].append(
+            (b'', b'depth', b'', _(b'ancestry depth of changesets to fetch'))
+        )
 
     localrepo.featuresetupfuncs.add(featuresetup)