verify: fix scope issues with del statement
authorAlejandro Santos <alejolp@alejolp.com>
Sun, 05 Jul 2009 11:04:31 +0200
changeset 9033 98a5652bfed9
parent 9032 1fa80c5428b8
child 9034 8429062de8d3
verify: fix scope issues with del statement
mercurial/verify.py
--- a/mercurial/verify.py	Sun Jul 05 11:02:00 2009 +0200
+++ b/mercurial/verify.py	Sun Jul 05 11:04:31 2009 +0200
@@ -147,7 +147,7 @@
     if havemf:
         for c,m in sorted([(c, m) for m in mflinkrevs for c in mflinkrevs[m]]):
             err(c, _("changeset refers to unknown manifest %s") % short(m))
-        del mflinkrevs
+        mflinkrevs = None # del is bad here due to scope issues
 
         for f in sorted(filelinkrevs):
             if f not in filenodes: