Rev 1662: Fix progress bar. in http://people.samba.org/bzr/jelmer/bzr-svn/trunk
Jelmer Vernooij
jelmer at samba.org
Tue Aug 26 05:02:19 BST 2008
At http://people.samba.org/bzr/jelmer/bzr-svn/trunk
------------------------------------------------------------
revno: 1662
revision-id: jelmer at samba.org-20080826040217-mm29rx1pikjg4bav
parent: jelmer at samba.org-20080826033223-axxs9zx9toa27sfa
committer: Jelmer Vernooij <jelmer at samba.org>
branch nick: 0.4
timestamp: Tue 2008-08-26 06:02:17 +0200
message:
Fix progress bar.
modified:
logwalker.py logwalker.py-20060621215743-c13fhfnyzh1xzwh2-1
=== modified file 'logwalker.py'
--- a/logwalker.py 2008-08-24 19:49:19 +0000
+++ b/logwalker.py 2008-08-26 04:02:17 +0000
@@ -313,7 +313,10 @@
while ((not ascending and revnum >= to_revnum) or
(ascending and revnum <= to_revnum)):
if pb is not None:
- pb.update("determining changes", from_revnum-revnum, from_revnum)
+ if ascending:
+ pb.update("determining changes", revnum, to_revnum)
+ else:
+ pb.update("determining changes", from_revnum-revnum, from_revnum)
assert revnum > 0 or path == "", "Inconsistent path,revnum: %r,%r" % (revnum, path)
revpaths = self._get_revision_paths(revnum)
More information about the bazaar-commits
mailing list