Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
16678:48b1674ac1e7 | 16679:2950d186a927 |
---|---|
402 for k, v in self._tagscache.tags.iteritems(): | 402 for k, v in self._tagscache.tags.iteritems(): |
403 try: | 403 try: |
404 # ignore tags to unknown nodes | 404 # ignore tags to unknown nodes |
405 self.changelog.rev(v) | 405 self.changelog.rev(v) |
406 t[k] = v | 406 t[k] = v |
407 except error.LookupError: | 407 except (error.LookupError, ValueError): |
408 pass | 408 pass |
409 return t | 409 return t |
410 | 410 |
411 def _findtags(self): | 411 def _findtags(self): |
412 '''Do the hard work of finding tags. Return a pair of dicts | 412 '''Do the hard work of finding tags. Return a pair of dicts |