changeset 9033:98a5652bfed9

verify: fix scope issues with del statement
author Alejandro Santos <alejolp@alejolp.com>
date Sun, 05 Jul 2009 11:04:31 +0200
parents 1fa80c5428b8
children 8429062de8d3
files mercurial/verify.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: