##// END OF EJS Templates
cmdutil: changed code in _makegraphlogrevset not to use getitem...
Lucas Moscovicz -
r20756:e7833e63 default
parent child Browse files
Show More
@@ -1515,8 +1515,12 b' def _makegraphlogrevset(repo, pats, opts'
1515 1515 follow = opts.get('follow') or opts.get('follow_first')
1516 1516 followfirst = opts.get('follow_first') and 1 or 0
1517 1517 # --follow with FILE behaviour depends on revs...
1518 startrev = revs[0]
1519 followdescendants = (len(revs) > 1 and revs[0] < revs[1]) and 1 or 0
1518 it = iter(revs)
1519 startrev = it.next()
1520 try:
1521 followdescendants = startrev < it.next()
1522 except (StopIteration):
1523 followdescendants = False
1520 1524
1521 1525 # branch and only_branch are really aliases and must be handled at
1522 1526 # the same time
General Comments 0
You need to be logged in to leave comments. Login now