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

  • Committer: Jelmer Vernooij
  • Date: 2009-09-14 15:24:52 UTC
  • mto: (0.200.602 trunk)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@samba.org-20090914152452-qiih1hd2vkzoe9wy
Cope with pushing to (not yet) existing branches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
536
536
        result = GitBranchPushResult()
537
537
        result.source_branch = self.source
538
538
        result.target_branch = self.target
539
 
        result.old_revid = self.target.last_revision()
 
539
        try:
 
540
            result.old_revid = self.target.last_revision()
 
541
        except NoSuchRef:
 
542
            result.old_revid = revision.NULL_REVISION
540
543
        if stop_revision is None:
541
544
            stop_revision = self.source.last_revision()
542
545
        # FIXME: Check for diverged branches