# HG changeset patch # User Pierre-Yves David # Date 1395362042 25200 # Node ID 202291a280fb6225bf7f811ed3b5ac6232c5b2af # Parent c7d543eebe1a703eeb8bb02ee3a2ae2e08746c4d revpair: drop useless conditional The `if not revs:` case is tested at the beginning of the function. diff -r c7d543eebe1a -r 202291a280fb mercurial/scmutil.py --- a/mercurial/scmutil.py Fri Mar 21 17:20:56 2014 -0500 +++ b/mercurial/scmutil.py Thu Mar 20 17:34:02 2014 -0700 @@ -471,9 +471,7 @@ l = revrange(repo, revs) if len(l) == 0: - if revs: - raise util.Abort(_('empty revision range')) - return repo.dirstate.p1(), None + raise util.Abort(_('empty revision range')) if len(l) == 1 and len(revs) == 1 and _revrangesep not in revs[0]: return repo.lookup(l[0]), None