~ubuntu-branches/debian/jessie/bzr-git/jessie

« back to all changes in this revision

Viewing changes to mapping.py

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2011-05-01 03:27:52 UTC
  • mfrom: (1.1.16 upstream)
  • Revision ID: james.westby@ubuntu.com-20110501032752-tkhql577jb8wpgua
Tags: 0.6.0+bzr1213-1
* Add build dependency on python-bzrlib.tests for newer versions of
  bzr.
* New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
581
581
        self.paths = None
582
582
        self.mapping = mapping
583
583
 
 
584
    def set_file_id(self, path, file_id):
 
585
        assert type(path) is str
 
586
        assert type(file_id) is str
 
587
        self.file_ids[path] = file_id
 
588
 
584
589
    def lookup_file_id(self, path):
585
590
        assert type(path) is str
586
591
        try:
602
607
        else:
603
608
            assert type(path) is str
604
609
            return path
 
610
 
 
611
    def copy(self):
 
612
        return self.__class__(dict(self.file_ids), self.mapping)