~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Martin Pool
  • Date: 2005-09-15 04:32:41 UTC
  • Revision ID: mbp@sourcefrog.net-20050915043239-f8f8978f485c1b85
- new weave based cleanup [broken]

  - don't do a simple comparison to the basis version, but rather take
    file merges into account.

  - do more generation of XML in memory rather than to temporary files

  - can now commit basic merges (not totally correctly though)

  - track file parent versions

  - new revision id derived from the supplied timestamp (if given),
    not the current timestamp

  - only write working inventory if there were changes caused by 
    deleted files

  - put back WorkingTree.get_file_size

  - methods to serialize to/from strings, as well as files.

Doesn't handle selective commit or proper merges yet.

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
        ## XXX: badly named; this isn't in the store at all
96
96
        return self.abspath(self.id2path(file_id))
97
97
 
 
98
 
 
99
    def id2abspath(self, file_id):
 
100
        return self.abspath(self.id2path(file_id))
 
101
 
98
102
                
99
103
    def has_id(self, file_id):
100
104
        # files that have been deleted are excluded
109
113
    
110
114
 
111
115
    def get_file_size(self, file_id):
112
 
        # is this still called?
113
 
        raise NotImplementedError()
 
116
        return os.path.getsize(self.id2abspath(file_id))
114
117
 
115
118
 
116
119
    def get_file_sha1(self, file_id):