diff mercurial/localrepo.py @ 16679:2950d186a927 stable

parsers: strictly check for 20-byte hashes where they're required
author Bryan O'Sullivan <bryano@fb.com>
date Sat, 12 May 2012 20:25:33 +0200
parents ebf6d38c9063
children d0e419b0f7de
line wrap: on
line diff
--- a/mercurial/localrepo.py	Sat May 12 22:12:54 2012 +0200
+++ b/mercurial/localrepo.py	Sat May 12 20:25:33 2012 +0200
@@ -404,7 +404,7 @@
                 # ignore tags to unknown nodes
                 self.changelog.rev(v)
                 t[k] = v
-            except error.LookupError:
+            except (error.LookupError, ValueError):
                 pass
         return t