/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 bzrlib/revisiontree.py

MergeĀ lp:bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006-2010 Canonical Ltd
 
1
# Copyright (C) 2005, 2007 Canonical Ltd
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
20
20
 
21
21
from bzrlib import (
22
22
    errors,
 
23
    osutils,
23
24
    revision,
 
25
    symbol_versioning,
24
26
    tree,
25
27
    )
 
28
from bzrlib.decorators import cleanup_method
26
29
 
27
30
 
28
31
class RevisionTree(tree.Tree):
101
104
 
102
105
    def get_file_mtime(self, file_id, path=None):
103
106
        ie = self._inventory[file_id]
104
 
        try:
105
 
            revision = self._repository.get_revision(ie.revision)
106
 
        except errors.NoSuchRevision:
107
 
            raise errors.FileTimestampUnavailable(self.id2path(file_id))
 
107
        revision = self._repository.get_revision(ie.revision)
108
108
        return revision.timestamp
109
109
 
110
110
    def is_executable(self, file_id, path=None):
181
181
        return '<%s instance at %x, rev_id=%r>' % (
182
182
            self.__class__.__name__, id(self), self._revision_id)
183
183
 
 
184
    @cleanup_method
184
185
    def unlock(self):
185
186
        self._repository.unlock()
186
187