Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 6056:0ad2ffbf6b38
Print less scary warning when invalidating the branch cache.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sat, 09 Feb 2008 18:58:31 +0100 |
parents | 30d2fecaab76 |
children | 88b4d726332a |
comparison
equal
deleted
inserted
replaced
6055:a3d8b1f8721d | 6056:0ad2ffbf6b38 |
---|---|
367 last, lrev = lines.pop(0).split(" ", 1) | 367 last, lrev = lines.pop(0).split(" ", 1) |
368 last, lrev = bin(last), int(lrev) | 368 last, lrev = bin(last), int(lrev) |
369 if not (lrev < self.changelog.count() and | 369 if not (lrev < self.changelog.count() and |
370 self.changelog.node(lrev) == last): # sanity check | 370 self.changelog.node(lrev) == last): # sanity check |
371 # invalidate the cache | 371 # invalidate the cache |
372 raise ValueError('Invalid branch cache: unknown tip') | 372 raise ValueError('invalidating branch cache (tip differs)') |
373 for l in lines: | 373 for l in lines: |
374 if not l: continue | 374 if not l: continue |
375 node, label = l.split(" ", 1) | 375 node, label = l.split(" ", 1) |
376 partial[label.strip()] = bin(node) | 376 partial[label.strip()] = bin(node) |
377 except (KeyboardInterrupt, util.SignalInterrupt): | 377 except (KeyboardInterrupt, util.SignalInterrupt): |