##// END OF EJS Templates
dagop: raise ProgrammingError if stopdepth < 0...
Martin von Zweigbergk -
r33027:a10f5f67 default
parent child Browse files
Show More
@@ -32,8 +32,10 b' def _genrevancestors(repo, revs, followf'
32 startdepth = 0
32 startdepth = 0
33 if stopdepth is None:
33 if stopdepth is None:
34 stopdepth = _maxlogdepth
34 stopdepth = _maxlogdepth
35 if stopdepth <= 0:
35 if stopdepth == 0:
36 return
36 return
37 if stopdepth < 0:
38 raise error.ProgrammingError('negative stopdepth')
37
39
38 cl = repo.changelog
40 cl = repo.changelog
39
41
General Comments 0
You need to be logged in to leave comments. Login now