158
158
# find the relative path to the given file (needed for proper delta)
159
159
wtpath = tree1.basedir
160
#print "DEBUG: wtpath =", wtpath
161
160
fullpath = filename
162
#print "DEBUG: fullpath =", fullpath
164
162
wtsplit = wtpath.split('/')
165
163
fpsplit = fullpath.split('/')
172
170
rel = '/'.join(fpcopy)
173
#print "DEBUG: rel =", rel
175
if bzrlib.version_info[1] < 9:
176
delta = compare_trees(old_tree=tree2,
179
specific_files=[rel])
181
delta = tree1.changes_from(tree2,
172
delta = tree1.changes_from(tree2,
182
173
want_unchanged=True,
183
174
specific_files=[rel])
185
""" Debug information (could be usable in the future, so didn't cut out)
186
print "DEBUG: delta.renamed:"
187
for path, id, kind, text_modified, meta_modified in delta.renamed:
190
print "DEBUG: delta.added:"
191
for path, id, kind in delta.added:
194
print "DEBUG: delta.removed:"
195
for path, id, kind, text_modified, meta_modified in delta.removed:
198
print "DEBUG: delta.modified:"
199
for path, id, kind, text_modified, meta_modified in delta.modified:
202
print "DEBUG: delta.unchanged:"
203
for path, id, kind in delta.unchanged:
207
176
if len(delta.renamed):
209
178
elif len(delta.added):