comparison mercurial/hg.py @ 529:aace5b681fe9

Attempt to fix negative revision count from pull -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Attempt to fix negative revision count from pull manifest hash: 4e8881037d545f4bf76d2c1b06f685b2467cd3a8 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (GNU/Linux) iD8DBQFCw4yUywK+sNU5EO8RApUkAKCCYTpBG3Wpu15aVeG0iBWE612S5wCgnSBi PEfXF4NI2O9AqWijOMBq6aM= =AyGw -----END PGP SIGNATURE-----
author mpm@selenic.com
date Wed, 29 Jun 2005 22:09:24 -0800
parents 2f1de824798a
children c15b4bc0a11c eda4c32c167a
comparison
equal deleted inserted replaced
528:648386fabf9c 529:aace5b681fe9
1012 while 1: 1012 while 1:
1013 f = getchunk() 1013 f = getchunk()
1014 if not f: break 1014 if not f: break
1015 self.ui.debug("adding %s revisions\n" % f) 1015 self.ui.debug("adding %s revisions\n" % f)
1016 fl = self.file(f) 1016 fl = self.file(f)
1017 o = fl.tip() 1017 o = fl.count()
1018 n = fl.addgroup(getgroup(), revmap, tr) 1018 n = fl.addgroup(getgroup(), revmap, tr)
1019 revisions += fl.rev(n) - fl.rev(o) 1019 revisions += fl.count() - o
1020 files += 1 1020 files += 1
1021 1021
1022 self.ui.status(("modified %d files, added %d changesets" + 1022 self.ui.status(("modified %d files, added %d changesets" +
1023 " and %d new revisions\n") 1023 " and %d new revisions\n")
1024 % (files, changesets, revisions)) 1024 % (files, changesets, revisions))