Rev 2494: Update bzrlib.log.show_changed_revisions to use the new api in http://bzr.arbash-meinel.com/branches/bzr/jam-integration
John Arbash Meinel
john at arbash-meinel.com
Thu May 24 13:42:36 BST 2007
At http://bzr.arbash-meinel.com/branches/bzr/jam-integration
------------------------------------------------------------
revno: 2494
revision-id: john at arbash-meinel.com-20070524124224-0yyi4laqtngw6lf6
parent: john at arbash-meinel.com-20070524121925-jf60fhqgvtcy6n0g
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: jam-integration
timestamp: Thu 2007-05-24 07:42:24 -0500
message:
Update bzrlib.log.show_changed_revisions to use the new api
modified:
bzrlib/log.py log.py-20050505065812-c40ce11702fe5fb1
-------------- next part --------------
=== modified file 'bzrlib/log.py'
--- a/bzrlib/log.py 2007-05-24 12:13:06 +0000
+++ b/bzrlib/log.py 2007-05-24 12:42:24 +0000
@@ -683,6 +683,7 @@
lf = LongLogFormatter(to_file=to_file, show_timezone=show_timezone)
lf.show(revno, rev, delta)
+
def show_changed_revisions(branch, old_rh, new_rh, to_file=None, log_format='long'):
"""Show the change in revision history comparing the old revision history to the new one.
@@ -723,7 +724,8 @@
to_file.write('\nRemoved Revisions:\n')
for i in range(base_idx, len(old_rh)):
rev = branch.repository.get_revision(old_rh[i])
- lf.show(i+1, rev, None)
+ lr = LogRevision(rev, i+1, 0, None)
+ lf.log_revision(lr)
to_file.write('*'*60)
to_file.write('\n\n')
if base_idx < len(new_rh):
More information about the bazaar-commits
mailing list