changeset 42345:7d4ee14ff92d

narrowcommands: drop unnecessary adding of '' for root directory It's now included by util.dirs(). Differential Revision: https://phab.mercurial-scm.org/D6405
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 22 Apr 2019 22:43:00 -0700
parents c361db7a5f14
children 38d85ec06552
files hgext/narrow/narrowcommands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/narrow/narrowcommands.py	Wed Apr 17 21:39:18 2019 -0700
+++ b/hgext/narrow/narrowcommands.py	Mon Apr 22 22:43:00 2019 -0700
@@ -216,7 +216,7 @@
                     todelete.append(f)
             elif f.startswith('meta/'):
                 dir = f[5:-13]
-                dirs = [''] + sorted(util.dirs({dir})) + [dir]
+                dirs = sorted(util.dirs({dir})) + [dir]
                 include = True
                 for d in dirs:
                     visit = newmatch.visitdir(d)