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