/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-03-21 23:30:09 UTC
  • mto: (0.436.139 foreign)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@samba.org-20090321233009-gi5hdrcyz0t8aw3e
Remove dpush command (should be in bzr itself, or if that doesn't make it in a separate plugin).

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 3 of the License, or
 
5
# the Free Software Foundation; either version 2 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 osutils
17
 
from bzrlib.versionedfile import VirtualVersionedFiles
 
16
from bzrlib import (
 
17
    osutils,
 
18
    )
 
19
from bzrlib.versionedfile import (
 
20
    VirtualVersionedFiles,
 
21
    )
18
22
 
19
 
from bzrlib.errors import NoSuchRevision
 
23
from bzrlib.errors import (
 
24
    NoSuchRevision,
 
25
    )
20
26
 
21
27
 
22
28
class VirtualRevisionTexts(VirtualVersionedFiles):
31
37
        except NoSuchRevision:
32
38
            return None
33
39
 
34
 
    # TODO: annotate, keys
 
40
    # TODO: annotate
 
41
 
 
42
    def keys(self):
 
43
        return self.repository.all_revision_ids()
35
44
 
36
45
 
37
46
class VirtualInventoryTexts(VirtualVersionedFiles):
46
55
        except NoSuchRevision:
47
56
            return None
48
57
 
49
 
    # TODO: annotate, keys
 
58
    def keys(self):
 
59
        return self.repository.all_revision_ids()
 
60
 
 
61
    # TODO: annotate
50
62
 
51
63
 
52
64
class VirtualSignatureTexts(VirtualVersionedFiles):
61
73
        except NoSuchRevision:
62
74
            return None
63
75
 
64
 
    # TODO: annotate, keys
 
76
    def keys(self):
 
77
        return self.repository.all_revision_ids()
 
78
 
 
79
    # TODO: annotate
65
80