985
985
want_unversioned=False):
986
986
raise NotImplementedError(self._iter_git_changes)
988
def find_target_path(self, path, recurse='none'):
989
ret = self.find_target_paths([path], recurse=recurse)
992
def find_source_path(self, path, recurse='none'):
993
ret = self.find_source_paths([path], recurse=recurse)
996
def find_target_paths(self, paths, recurse='none'):
999
changes = self._iter_git_changes(specific_files=paths)[0]
1000
for (oldpath, newpath), (oldmode, newmode), (oldsha, newsha) in changes:
1001
if oldpath in paths:
1002
ret[oldpath] = newpath
1005
if self.source.has_filename(path):
1006
if self.target.has_filename(path):
1011
raise errors.NoSuchFile(path)
1014
def find_source_paths(self, paths, recurse='none'):
1017
changes = self._iter_git_changes(specific_files=paths)[0]
1018
for (oldpath, newpath), (oldmode, newmode), (oldsha, newsha) in changes:
1019
if newpath in paths:
1020
ret[newpath] = oldpath
1023
if self.target.has_filename(path):
1024
if self.source.has_filename(path):
1029
raise errors.NoSuchFile(path)
989
1033
class InterGitRevisionTrees(InterGitTrees):
990
1034
"""InterTree that works between two git revision trees."""