Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/localrepo.py @ 3473:0e68608bd11d
use xrange instead of range
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Thu, 19 Oct 2006 14:16:51 +0200 |
parents | fcf14d87e0a4 |
children | ceaa3fefc10c 23cffef5d424 |
comparison
equal
deleted
inserted
replaced
3472:df7202f6887c | 3473:0e68608bd11d |
---|---|
1130 | 1130 |
1131 if r: | 1131 if r: |
1132 reqcnt += 1 | 1132 reqcnt += 1 |
1133 self.ui.debug(_("request %d: %s\n") % | 1133 self.ui.debug(_("request %d: %s\n") % |
1134 (reqcnt, " ".join(map(short, r)))) | 1134 (reqcnt, " ".join(map(short, r)))) |
1135 for p in range(0, len(r), 10): | 1135 for p in xrange(0, len(r), 10): |
1136 for b in remote.branches(r[p:p+10]): | 1136 for b in remote.branches(r[p:p+10]): |
1137 self.ui.debug(_("received %s:%s\n") % | 1137 self.ui.debug(_("received %s:%s\n") % |
1138 (short(b[0]), short(b[1]))) | 1138 (short(b[0]), short(b[1]))) |
1139 unknown.append(b) | 1139 unknown.append(b) |
1140 | 1140 |
1748 | 1748 |
1749 if changesets > 0: | 1749 if changesets > 0: |
1750 self.hook("changegroup", node=hex(self.changelog.node(cor+1)), | 1750 self.hook("changegroup", node=hex(self.changelog.node(cor+1)), |
1751 source=srctype, url=url) | 1751 source=srctype, url=url) |
1752 | 1752 |
1753 for i in range(cor + 1, cnr + 1): | 1753 for i in xrange(cor + 1, cnr + 1): |
1754 self.hook("incoming", node=hex(self.changelog.node(i)), | 1754 self.hook("incoming", node=hex(self.changelog.node(i)), |
1755 source=srctype, url=url) | 1755 source=srctype, url=url) |
1756 | 1756 |
1757 return newheads - oldheads + 1 | 1757 return newheads - oldheads + 1 |
1758 | 1758 |