--- a/hgext/graphlog.py Fri Jul 06 18:45:27 2012 +0900
+++ b/hgext/graphlog.py Wed Jul 11 17:05:20 2012 +0200
@@ -14,7 +14,6 @@
from mercurial.cmdutil import show_changeset
from mercurial.i18n import _
-from mercurial.node import nullrev
from mercurial import cmdutil, commands, extensions, scmutil
from mercurial import hg, util, graphmod, templatekw, revset
@@ -227,15 +226,6 @@
state[0] = coldiff
state[1] = idx
-def get_revs(repo, rev_opt):
- if rev_opt:
- revs = scmutil.revrange(repo, rev_opt)
- if len(revs) == 0:
- return (nullrev, nullrev)
- return (max(revs), min(revs))
- else:
- return (len(repo) - 1, 0)
-
def check_unsupported_flags(pats, opts):
for op in ["newest_first"]:
if op in opts and opts[op]: