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

update copyright years

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
    InvalidRevisionId,
23
23
    InvalidRevisionSpec,
24
24
    )
25
 
from bzrlib.revision import (
26
 
    NULL_REVISION,
27
 
)
28
25
from bzrlib.revisionspec import (
29
26
    RevisionInfo,
30
27
    RevisionSpec,
84
81
        return history
85
82
 
86
83
    def __nonzero__(self):
 
84
        from bzrlib.revision import (
 
85
            NULL_REVISION,
 
86
            )
87
87
        # The default implementation uses branch.repository.has_revision()
88
88
        if self.rev_id is None:
89
89
            return False
102
102
        try:
103
103
            graph = branch.repository.get_graph()
104
104
            for revid, _ in graph.iter_ancestry([branch.last_revision()]):
105
 
                if revid == NULL_REVISION:
106
 
                    continue
107
105
                try:
108
106
                    foreign_revid, mapping = parse_revid(revid)
109
107
                except InvalidRevisionId: