981
981
want_unversioned=False):
982
982
raise NotImplementedError(self._iter_git_changes)
984
def find_target_path(self, path, recurse='none'):
985
ret = self.find_target_paths([path], recurse=recurse)
988
def find_source_path(self, path, recurse='none'):
989
ret = self.find_source_paths([path], recurse=recurse)
992
def find_target_paths(self, paths, recurse='none'):
995
changes = self._iter_git_changes(specific_files=paths)[0]
996
for (oldpath, newpath), (oldmode, newmode), (oldsha, newsha) in changes:
998
ret[oldpath] = newpath
1001
if self.source.has_filename(path):
1002
if self.target.has_filename(path):
1007
raise errors.NoSuchFile(path)
1010
def find_source_paths(self, paths, recurse='none'):
1013
changes = self._iter_git_changes(specific_files=paths)[0]
1014
for (oldpath, newpath), (oldmode, newmode), (oldsha, newsha) in changes:
1015
if newpath in paths:
1016
ret[newpath] = oldpath
1019
if self.target.has_filename(path):
1020
if self.source.has_filename(path):
1025
raise errors.NoSuchFile(path)
985
1029
class InterGitRevisionTrees(InterGitTrees):
986
1030
"""InterTree that works between two git revision trees."""