##// END OF EJS Templates
revpair: drop useless conditional...
Pierre-Yves David -
r20819:202291a2 default
parent child Browse files
Show More
@@ -471,9 +471,7 b' def revpair(repo, revs):'
471 l = revrange(repo, revs)
471 l = revrange(repo, revs)
472
472
473 if len(l) == 0:
473 if len(l) == 0:
474 if revs:
474 raise util.Abort(_('empty revision range'))
475 raise util.Abort(_('empty revision range'))
476 return repo.dirstate.p1(), None
477
475
478 if len(l) == 1 and len(revs) == 1 and _revrangesep not in revs[0]:
476 if len(l) == 1 and len(revs) == 1 and _revrangesep not in revs[0]:
479 return repo.lookup(l[0]), None
477 return repo.lookup(l[0]), None
General Comments 0
You need to be logged in to leave comments. Login now