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

  • Committer: Jelmer Vernooij
  • Date: 2009-02-08 19:20:14 UTC
  • mto: (0.436.139 foreign)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@samba.org-20090208192014-0g17picqdx7edl92
Import foreign-mapping-upgrade command, fixes for bzr-svn.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
5
 
# the Free Software Foundation; either version 2 of the License, or
 
5
# the Free Software Foundation; either version 3 of the License, or
6
6
# (at your option) any later version.
7
7
 
8
8
# This program is distributed in the hope that it will be useful,
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
15
 
16
 
from bzrlib import (
17
 
    osutils,
18
 
    )
19
 
from bzrlib.versionedfile import (
20
 
    VirtualVersionedFiles,
21
 
    )
 
16
from bzrlib import osutils
 
17
from bzrlib.versionedfile import VirtualVersionedFiles
22
18
 
23
 
from bzrlib.errors import (
24
 
    NoSuchRevision,
25
 
    )
 
19
from bzrlib.errors import NoSuchRevision
26
20
 
27
21
 
28
22
class VirtualRevisionTexts(VirtualVersionedFiles):
37
31
        except NoSuchRevision:
38
32
            return None
39
33
 
40
 
    # TODO: annotate
41
 
 
42
 
    def keys(self):
43
 
        return self.repository.all_revision_ids()
 
34
    # TODO: annotate, keys
44
35
 
45
36
 
46
37
class VirtualInventoryTexts(VirtualVersionedFiles):
55
46
        except NoSuchRevision:
56
47
            return None
57
48
 
58
 
    def keys(self):
59
 
        return self.repository.all_revision_ids()
60
 
 
61
 
    # TODO: annotate
 
49
    # TODO: annotate, keys
62
50
 
63
51
 
64
52
class VirtualSignatureTexts(VirtualVersionedFiles):
73
61
        except NoSuchRevision:
74
62
            return None
75
63
 
76
 
    def keys(self):
77
 
        return self.repository.all_revision_ids()
78
 
 
79
 
    # TODO: annotate
 
64
    # TODO: annotate, keys
80
65