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

Cope with open_branch() actually checking whether there is a branch present.

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
    @classmethod
126
126
    def revision_id_foreign_to_bzr(cls, git_rev_id):
127
127
        """Convert a git revision id handle to a Bazaar revision id."""
 
128
        if git_rev_id == "0" * 40:
 
129
            return NULL_REVISION
128
130
        return "%s:%s" % (cls.revid_prefix, git_rev_id)
129
131
 
130
132
    @classmethod