/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 breezy/commit.py

  • Committer: Jelmer Vernooij
  • Date: 2019-06-22 12:31:14 UTC
  • mto: This revision was merged to the branch mainline in revision 7358.
  • Revision ID: jelmer@jelmer.uk-20190622123114-qqn9px3o4fsjlwxl
Fix ghost handling during commit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
498
498
                    self.branch.fetch(self.master_branch, self.rev_id)
499
499
 
500
500
            # and now do the commit locally.
 
501
            if new_revno is None:
 
502
                # Keep existing behaviour around ghosts
 
503
                new_revno = 1
501
504
            self.branch.set_last_revision_info(new_revno, self.rev_id)
502
505
        else:
503
506
            try: