changeset 24481:dded1eeeff64

verify: add a note about a paleo-bug In the very early days of hg, it was possible to commit /dev/null because our patch importer was too simple. Repos from this era may still exist, add a note about why we ignore this name.
author Matt Mackall <mpm@selenic.com>
date Fri, 27 Mar 2015 15:13:21 -0500
parents 3df7fc75afc5
children 3eb9045396b0
files mercurial/verify.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/verify.py	Fri Mar 27 13:51:21 2015 -0500
+++ b/mercurial/verify.py	Fri Mar 27 15:13:21 2015 -0500
@@ -169,7 +169,7 @@
             for f, fn in mf.readdelta(n).iteritems():
                 if not f:
                     err(lr, _("file without name in manifest"))
-                elif f != "/dev/null":
+                elif f != "/dev/null": # ignore this in very old repos
                     filenodes.setdefault(_normpath(f), {}).setdefault(fn, lr)
         except Exception, inst:
             exc(lr, _("reading manifest delta %s") % short(n), inst)