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

  • Committer: Jelmer Vernooij
  • Date: 2008-08-29 15:51:57 UTC
  • mto: (0.219.2 trunk)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@samba.org-20080829155157-l5fyndavfxy93zan
Add abstract functions for converting revision ids between bzr and foreign vcses.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
    roundtripping = False
29
29
    revid_prefix = None
30
30
 
 
31
    def revision_id_bzr_to_foreign(self, bzr_revid):
 
32
        """Parse a bzr revision id and convert it to a foreign revid.
 
33
 
 
34
        :param bzr_revid: The bzr revision id (a string).
 
35
        :return: A foreign revision id, can be any sort of object.
 
36
        """
 
37
        raise NotImplementedError(self.revision_id_bzr_to_foreign)
 
38
 
 
39
    def revision_id_foreign_to_bzr(self, foreign_revid):
 
40
        """Parse a foreign revision id and convert it to a bzr revid.
 
41
 
 
42
        :param foreign_revid: Foreign revision id, can be any sort of object.
 
43
        :return: A bzr revision id.
 
44
        """
 
45
        raise NotImplementedError(self.revision_id_foreign_to_bzr)
 
46
 
31
47
 
32
48
class VcsMappingRegistry(registry.Registry):
33
49
    """Registry for Bazaar<->foreign VCS mappings.