Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Thu Oct 19 14:03:41 2006 +0200 +++ b/mercurial/localrepo.py Thu Oct 19 14:16:51 2006 +0200 @@ -1132,7 +1132,7 @@ reqcnt += 1 self.ui.debug(_("request %d: %s\n") % (reqcnt, " ".join(map(short, r)))) - for p in range(0, len(r), 10): + for p in xrange(0, len(r), 10): for b in remote.branches(r[p:p+10]): self.ui.debug(_("received %s:%s\n") % (short(b[0]), short(b[1]))) @@ -1750,7 +1750,7 @@ self.hook("changegroup", node=hex(self.changelog.node(cor+1)), source=srctype, url=url) - for i in range(cor + 1, cnr + 1): + for i in xrange(cor + 1, cnr + 1): self.hook("incoming", node=hex(self.changelog.node(i)), source=srctype, url=url)