verify: add a note about a paleo-bug
authorMatt Mackall <mpm@selenic.com>
Fri, 27 Mar 2015 15:13:21 -0500
changeset 24481 dded1eeeff64
parent 24480 3df7fc75afc5
child 24482 3eb9045396b0
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.
mercurial/verify.py
--- 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)