Mercurial > hg-stable
changeset 17162:868c256cb51b
graphlog: remove unused get_revs() function
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Wed, 11 Jul 2012 17:05:20 +0200 |
parents | be016e96117a |
children | 4c5d7124661a |
files | hgext/graphlog.py |
diffstat | 1 files changed, 0 insertions(+), 10 deletions(-) [+] |
line wrap: on
line diff
--- 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]: