hgext/narrow/narrowdirstate.py
changeset 43076 2372284d9457
parent 42472 87a34c767384
child 43077 687b865b95ad
--- a/hgext/narrow/narrowdirstate.py	Sat Oct 05 10:29:34 2019 -0400
+++ b/hgext/narrow/narrowdirstate.py	Sun Oct 06 09:45:02 2019 -0400
@@ -8,9 +8,8 @@
 from __future__ import absolute_import
 
 from mercurial.i18n import _
-from mercurial import (
-    error,
-)
+from mercurial import error
+
 
 def wrapdirstate(repo, dirstate):
     """Add narrow spec dirstate ignore, block changes outside narrow spec."""
@@ -20,9 +19,15 @@
             narrowmatch = repo.narrowmatch()
             for f in args:
                 if f is not None and not narrowmatch(f) and f not in self:
-                    raise error.Abort(_("cannot track '%s' - it is outside " +
-                        "the narrow clone") % f)
+                    raise error.Abort(
+                        _(
+                            "cannot track '%s' - it is outside "
+                            + "the narrow clone"
+                        )
+                        % f
+                    )
             return fn(self, *args, **kwargs)
+
         return _wrapper
 
     class narrowdirstate(dirstate.__class__):