/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

Default to using global user id rather than making one up.

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.get("refs/heads/master", "0" * 40))
 
447
            result.old_revid = self.target.mapping.revision_id_foreign_to_bzr(old_refs["refs/heads/master"])
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():
513
513
        return (not isinstance(source, GitBranch) and 
514
514
                isinstance(target, GitBranch))
515
515
 
516
 
    def update_revisions(self, *args, **kwargs):
517
 
        raise NoPushSupport()
518
 
 
519
516
    def push(self, overwrite=True, stop_revision=None, 
520
517
             _override_hook_source_branch=None):
521
518
        raise NoPushSupport()