Rev 3452: restore --verbose, and document --local in http://bzr.arbash-meinel.com/branches/bzr/1.6-dev/uncommit_perf
John Arbash Meinel
john at arbash-meinel.com
Thu May 29 22:24:32 BST 2008
At http://bzr.arbash-meinel.com/branches/bzr/1.6-dev/uncommit_perf
------------------------------------------------------------
revno: 3452
revision-id: john at arbash-meinel.com-20080529212402-vqgem865h6w90z9z
parent: john at arbash-meinel.com-20080523060036-24gdulfvnog38w6v
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: uncommit_perf
timestamp: Thu 2008-05-29 16:24:02 -0500
message:
restore --verbose, and document --local
modified:
bzrlib/uncommit.py uncommit.py-20050626215513-5ec509fa425b305c
-------------- next part --------------
=== modified file 'bzrlib/uncommit.py'
--- a/bzrlib/uncommit.py 2008-05-23 05:37:53 +0000
+++ b/bzrlib/uncommit.py 2008-05-29 21:24:02 +0000
@@ -35,6 +35,9 @@
:param dry_run: Don't actually change anything
:param verbose: Print each step as you do it
:param revno: Remove back to this revision
+ :param local: If this branch is bound, only remove the revisions from the
+ local branch. If this branch is not bound, it is an error to pass
+ local=True.
"""
unlockable = []
try:
@@ -74,6 +77,8 @@
if cur_revno == new_revno:
new_revision_id = rev_id
break
+ if verbose:
+ print 'Removing revno %d: %s' % (cur_revno, rev_id)
cur_revno -= 1
parents = graph.get_parent_map([rev_id]).get(rev_id, None)
if not parents:
More information about the bazaar-commits
mailing list