changeset 24700:32b268cbff00

manifestdict: drop empty-string argument when creating empty manifest manifestdict() creates an empty manifestdict, so let's consistently use that instead of explicitly parsing an empty string (which does result in an empty manifest).
author Martin von Zweigbergk <martinvonz@google.com>
date Fri, 10 Apr 2015 18:13:01 -0700
parents 64cd23a1bc13
children 03ee576784e6
files mercurial/manifest.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/manifest.py	Sun Apr 12 06:51:13 2015 -0700
+++ b/mercurial/manifest.py	Fri Apr 10 18:13:01 2015 -0700
@@ -270,7 +270,7 @@
                     m._lm[fn] = lm[fn]
             return m
 
-        m = manifestdict('')
+        m = manifestdict()
         m._lm = self._lm.filtercopy(match)
         return m
 
@@ -307,7 +307,7 @@
             return default
 
     def copy(self):
-        c = manifestdict('')
+        c = manifestdict()
         c._lm = self._lm.copy()
         return c