/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/uncommit.py

  • Committer: John Arbash Meinel
  • Date: 2008-05-29 21:24:02 UTC
  • mto: This revision was merged to the branch mainline in revision 3461.
  • Revision ID: john@arbash-meinel.com-20080529212402-vqgem865h6w90z9z
restore --verbose, and document --local

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    :param dry_run: Don't actually change anything
36
36
    :param verbose: Print each step as you do it
37
37
    :param revno: Remove back to this revision
 
38
    :param local: If this branch is bound, only remove the revisions from the
 
39
        local branch. If this branch is not bound, it is an error to pass
 
40
        local=True.
38
41
    """
39
42
    unlockable = []
40
43
    try:
74
77
            if cur_revno == new_revno:
75
78
                new_revision_id = rev_id
76
79
                break
 
80
            if verbose:
 
81
                print 'Removing revno %d: %s' % (cur_revno, rev_id)
77
82
            cur_revno -= 1
78
83
            parents = graph.get_parent_map([rev_id]).get(rev_id, None)
79
84
            if not parents: