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

Merge roundtrip support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
303
303
        except InvalidRevisionId:
304
304
            raise NoSuchRevision(self, bzr_revid)
305
305
 
 
306
    def lookup_foreign_revision_id(self, foreign_revid, mapping=None):
 
307
        """Lookup a revision id.
 
308
 
 
309
        """
 
310
        if mapping is None:
 
311
            mapping = self.get_mapping()
 
312
        # Not really an easy way to parse foreign revids here..
 
313
        return mapping.revision_id_foreign_to_bzr(foreign_revid)
 
314
 
306
315
 
307
316
class RemoteGitTagDict(tag.BasicTags):
308
317
 
332
341
        raise GitSmartRemoteNotSupported()
333
342
 
334
343
    def last_revision(self):
335
 
        return self.mapping.revision_id_foreign_to_bzr(self.head)
 
344
        return self.lookup_foreign_revision_id(self.head)
336
345
 
337
346
    def _get_config(self):
338
347
        class EmptyConfig(object):