/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

Support pushing from git -> empty git repo.

Show diffs side-by-side

added added

removed removed

Lines of Context:
444
444
            stop_revision = self.source.last_revision()
445
445
        # FIXME: Check for diverged branches
446
446
        def get_changed_refs(old_refs):
447
 
            result.old_revid = self.target.mapping.revision_id_foreign_to_bzr(old_refs["refs/heads/master"])
 
447
            result.old_revid = self.target.mapping.revision_id_foreign_to_bzr(old_refs.get("refs/heads/master", "0" * 40))
448
448
            refs = { "refs/heads/master": self.source.repository.lookup_git_revid(stop_revision)[0] }
449
449
            result.new_revid = stop_revision
450
450
            for name, sha in self.source.repository._git.refs.as_dict("refs/tags").iteritems():