##// END OF EJS Templates
_makelogrevset: replace try/except with 'next' usage...
Pierre-Yves David -
r25168:4dfd4d3b default
parent child Browse files
Show More
@@ -1933,10 +1933,7 b' def _makelogrevset(repo, pats, opts, rev'
1933 # --follow with FILE behaviour depends on revs...
1933 # --follow with FILE behaviour depends on revs...
1934 it = iter(revs)
1934 it = iter(revs)
1935 startrev = it.next()
1935 startrev = it.next()
1936 try:
1936 followdescendants = startrev < next(it, startrev)
1937 followdescendants = startrev < it.next()
1938 except (StopIteration):
1939 followdescendants = False
1940
1937
1941 # branch and only_branch are really aliases and must be handled at
1938 # branch and only_branch are really aliases and must be handled at
1942 # the same time
1939 # the same time
General Comments 0
You need to be logged in to leave comments. Login now