D5348: narrowcommands: remove an unrequired `repo.narrowpats` call
pulkit (Pulkit Goyal)
phabricator at mercurial-scm.org
Sat Dec 1 00:38:12 UTC 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG773572e5cba2: narrowcommands: remove an unrequired `repo.narrowpats` call (authored by pulkit, committed by ).
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D5348?vs=12663&id=12664
REVISION DETAIL
https://phab.mercurial-scm.org/D5348
AFFECTED FILES
hgext/narrow/narrowcommands.py
CHANGE DETAILS
diff --git a/hgext/narrow/narrowcommands.py b/hgext/narrow/narrowcommands.py
--- a/hgext/narrow/narrowcommands.py
+++ b/hgext/narrow/narrowcommands.py
@@ -412,15 +412,13 @@
# Only print the current narrowspec.
if only_show:
- include, exclude = repo.narrowpats
-
ui.pager('tracked')
fm = ui.formatter('narrow', opts)
- for i in sorted(include):
+ for i in sorted(oldincludes):
fm.startitem()
fm.write('status', '%s ', 'I', label='narrow.included')
fm.write('pat', '%s\n', i, label='narrow.included')
- for i in sorted(exclude):
+ for i in sorted(oldexcludes):
fm.startitem()
fm.write('status', '%s ', 'X', label='narrow.excluded')
fm.write('pat', '%s\n', i, label='narrow.excluded')
To: pulkit, durin42, martinvonz, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list