Patchwork D5348: narrowcommands: remove an unrequired `repo.narrowpats` call

login
register
mail settings
Submitter phabricator
Date Dec. 1, 2018, 12:38 a.m.
Message ID <579a0ecd3f00f3455e221f75b47728bc@localhost.localdomain>
Download mbox | patch
Permalink /patch/36885/
State Not Applicable
Headers show

Comments

phabricator - Dec. 1, 2018, 12:38 a.m.
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




To: pulkit, durin42, martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

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')