Mercurial > public > mercurial-scm > hg
comparison hgext/graphlog.py @ 6969:d76f64cd4cb2
graphlog: fix calls from outside the repository (issue1285)
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Tue, 02 Sep 2008 09:25:29 +0200 |
parents | e75aab656f46 |
children | f7f0388f7bce |
comparison
equal
deleted
inserted
replaced
6950:381a892159d9 | 6969:d76f64cd4cb2 |
---|---|
214 stop_rev = max(stop_rev, start_rev - limit + 1) | 214 stop_rev = max(stop_rev, start_rev - limit + 1) |
215 if start_rev == nullrev: | 215 if start_rev == nullrev: |
216 return | 216 return |
217 cs_printer = show_changeset(ui, repo, opts) | 217 cs_printer = show_changeset(ui, repo, opts) |
218 if path: | 218 if path: |
219 cpath = canonpath(repo.root, os.getcwd(), path) | 219 path = canonpath(repo.root, os.getcwd(), path) |
220 grapher = filelog_grapher(repo, cpath, start_rev, stop_rev) | 220 if path: |
221 grapher = filelog_grapher(repo, path, start_rev, stop_rev) | |
221 else: | 222 else: |
222 grapher = revision_grapher(repo, start_rev, stop_rev) | 223 grapher = revision_grapher(repo, start_rev, stop_rev) |
223 repo_parents = repo.dirstate.parents() | 224 repo_parents = repo.dirstate.parents() |
224 prev_n_columns_diff = 0 | 225 prev_n_columns_diff = 0 |
225 prev_node_index = 0 | 226 prev_node_index = 0 |