comparison mercurial/localrepo.py @ 1492:5f0522d31967

Allow interrupting all parts of verify
author Matt Mackall <mpm@selenic.com>
date Wed, 02 Nov 2005 18:59:40 -0800
parents ae0d8d632b83
children 1a216cb4ee64
comparison
equal deleted inserted replaced
1491:91c0e8d7ddcf 1492:5f0522d31967
1616 if p not in self.changelog.nodemap: 1616 if p not in self.changelog.nodemap:
1617 err(_("changeset %s has unknown parent %s") % 1617 err(_("changeset %s has unknown parent %s") %
1618 (short(n), short(p))) 1618 (short(n), short(p)))
1619 try: 1619 try:
1620 changes = self.changelog.read(n) 1620 changes = self.changelog.read(n)
1621 except KeyboardInterrupt:
1622 self.ui.warn(_("interrupted"))
1623 raise
1621 except Exception, inst: 1624 except Exception, inst:
1622 err(_("unpacking changeset %s: %s") % (short(n), inst)) 1625 err(_("unpacking changeset %s: %s") % (short(n), inst))
1623 1626
1624 neededmanifests[changes[0]] = n 1627 neededmanifests[changes[0]] = n
1625 1628
1703 filelinkrevs[f].remove(flr) 1706 filelinkrevs[f].remove(flr)
1704 1707
1705 # verify contents 1708 # verify contents
1706 try: 1709 try:
1707 t = fl.read(n) 1710 t = fl.read(n)
1711 except KeyboardInterrupt:
1712 self.ui.warn(_("interrupted"))
1713 raise
1708 except Exception, inst: 1714 except Exception, inst:
1709 err(_("unpacking file %s %s: %s") % (f, short(n), inst)) 1715 err(_("unpacking file %s %s: %s") % (f, short(n), inst))
1710 1716
1711 # verify parents 1717 # verify parents
1712 (p1, p2) = fl.parents(n) 1718 (p1, p2) = fl.parents(n)