/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/push.py

  • Committer: Aaron Bentley
  • Date: 2009-01-02 01:58:48 UTC
  • mto: This revision was merged to the branch mainline in revision 3926.
  • Revision ID: aaron@aaronbentley.com-20090102015848-fk53vt2zz00nc24x
Show log for non-initial push -v

Show diffs side-by-side

added added

removed removed

Lines of Context:
171
171
                                    '  Try using "merge" and then "push".')
172
172
    if push_result is not None:
173
173
        push_result.report(to_file)
174
 
    elif verbose:
 
174
        old_revid = push_result.old_revid
 
175
        old_revno = push_result.old_revno
 
176
    else:
 
177
        old_revid = _mod_revision.NULL_REVISION
 
178
        old_revno = 0
 
179
    if verbose:
175
180
        br_to.lock_read()
176
181
        try:
177
182
            from bzrlib.log import show_branch_change
178
 
            show_branch_change(br_to, to_file, 0, _mod_revision.NULL_REVISION)
 
183
            show_branch_change(br_to, to_file, old_revno, old_revid)
179
184
        finally:
180
185
            br_to.unlock()
181
 
    else:
182
 
        # we probably did a clone rather than a push, so a message was
183
 
        # emitted above
184
 
        pass