Show More
@@ -14,7 +14,6 b' revision graph is also shown.' | |||||
14 |
|
14 | |||
15 | from mercurial.cmdutil import show_changeset |
|
15 | from mercurial.cmdutil import show_changeset | |
16 | from mercurial.i18n import _ |
|
16 | from mercurial.i18n import _ | |
17 | from mercurial.node import nullrev |
|
|||
18 | from mercurial import cmdutil, commands, extensions, scmutil |
|
17 | from mercurial import cmdutil, commands, extensions, scmutil | |
19 | from mercurial import hg, util, graphmod, templatekw, revset |
|
18 | from mercurial import hg, util, graphmod, templatekw, revset | |
20 |
|
19 | |||
@@ -227,15 +226,6 b' def ascii(ui, state, type, char, text, c' | |||||
227 | state[0] = coldiff |
|
226 | state[0] = coldiff | |
228 | state[1] = idx |
|
227 | state[1] = idx | |
229 |
|
228 | |||
230 | def get_revs(repo, rev_opt): |
|
|||
231 | if rev_opt: |
|
|||
232 | revs = scmutil.revrange(repo, rev_opt) |
|
|||
233 | if len(revs) == 0: |
|
|||
234 | return (nullrev, nullrev) |
|
|||
235 | return (max(revs), min(revs)) |
|
|||
236 | else: |
|
|||
237 | return (len(repo) - 1, 0) |
|
|||
238 |
|
||||
239 | def check_unsupported_flags(pats, opts): |
|
229 | def check_unsupported_flags(pats, opts): | |
240 | for op in ["newest_first"]: |
|
230 | for op in ["newest_first"]: | |
241 | if op in opts and opts[op]: |
|
231 | if op in opts and opts[op]: |
General Comments 0
You need to be logged in to leave comments.
Login now