Mercurial > public > mercurial-scm > hg
diff mercurial/commands.py @ 14494:1ffeeb91c55d
check-code: flag 0/1 used as constant Boolean expression
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Wed, 01 Jun 2011 12:38:46 +0200 |
parents | 610873cf064a |
children | 4f695345979c |
line wrap: on
line diff
--- a/mercurial/commands.py Tue May 31 20:39:04 2011 -0500 +++ b/mercurial/commands.py Wed Jun 01 12:38:46 2011 +0200 @@ -1342,7 +1342,7 @@ def showchunks(named): ui.write("\n%s\n" % named) chain = None - while 1: + while True: chunkdata = gen.deltachunk(chain) if not chunkdata: break @@ -1361,7 +1361,7 @@ showchunks("changelog") chunkdata = gen.manifestheader() showchunks("manifest") - while 1: + while True: chunkdata = gen.filelogheader() if not chunkdata: break @@ -1370,7 +1370,7 @@ else: chunkdata = gen.changelogheader() chain = None - while 1: + while True: chunkdata = gen.deltachunk(chain) if not chunkdata: break