# HG changeset patch # User Martin von Zweigbergk # Date 2015-04-11 01:13:01 # Node ID 32b268cbff00b6af35c5ce82c4b93f8934febabc # Parent 64cd23a1bc138eeba43958d7420528c5b6a3e98d 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). diff --git a/mercurial/manifest.py b/mercurial/manifest.py --- a/mercurial/manifest.py +++ b/mercurial/manifest.py @@ -270,7 +270,7 @@ class manifestdict(object): m._lm[fn] = lm[fn] return m - m = manifestdict('') + m = manifestdict() m._lm = self._lm.filtercopy(match) return m @@ -307,7 +307,7 @@ class manifestdict(object): return default def copy(self): - c = manifestdict('') + c = manifestdict() c._lm = self._lm.copy() return c