##// END OF EJS Templates
vcs: raise better exception if file node history cannot be extracted....
marcink -
r1179:c2415214 default
parent child Browse files
Show More
@@ -830,7 +830,13 b' class BaseCommit(object):'
830
830
831 :param pre_load: Optional. List of commit attributes to load.
831 :param pre_load: Optional. List of commit attributes to load.
832 """
832 """
833 return self.get_file_history(path, limit=1, pre_load=pre_load)[0]
833 commits = self.get_file_history(path, limit=1, pre_load=pre_load)
834 if not commits:
835 raise RepositoryError(
836 'Failed to fetch history for path {}. '
837 'Please check if such path exists in your repository'.format(
838 path))
839 return commits[0]
834
840
835 def get_file_history(self, path, limit=None, pre_load=None):
841 def get_file_history(self, path, limit=None, pre_load=None):
836 """
842 """
General Comments 0
You need to be logged in to leave comments. Login now