# HG changeset patch # User Patrick Mezard # Date 1220341660 -7200 # Node ID f7f0388f7bce9b426dae1937b45c467007c43515 # Parent 91f6370c433c589ad9cc9ec91433c509bd6cb95a# Parent d76f64cd4cb24c80ace17a06f0ff8f1e64ebef98 Merge with crew-stable diff -r 91f6370c433c -r f7f0388f7bce hgext/graphlog.py --- a/hgext/graphlog.py Tue Sep 02 01:19:12 2008 +0200 +++ b/hgext/graphlog.py Tue Sep 02 09:47:40 2008 +0200 @@ -216,8 +216,9 @@ return cs_printer = show_changeset(ui, repo, opts) if path: - cpath = canonpath(repo.root, os.getcwd(), path) - grapher = filelog_grapher(repo, cpath, start_rev, stop_rev) + path = canonpath(repo.root, os.getcwd(), path) + if path: + grapher = filelog_grapher(repo, path, start_rev, stop_rev) else: grapher = revision_grapher(repo, start_rev, stop_rev) repo_parents = repo.dirstate.parents() diff -r 91f6370c433c -r f7f0388f7bce tests/test-glog --- a/tests/test-glog Tue Sep 02 01:19:12 2008 +0200 +++ b/tests/test-glog Tue Sep 02 09:47:40 2008 +0200 @@ -144,3 +144,10 @@ echo % unused arguments hg glog -q foo bar || echo failed + +echo % from outer space +cd .. +hg glog -l1 repo +hg glog -l1 repo/0 +hg glog -l1 repo/missing + diff -r 91f6370c433c -r f7f0388f7bce tests/test-glog.out --- a/tests/test-glog.out Tue Sep 02 01:19:12 2008 +0200 +++ b/tests/test-glog.out Tue Sep 02 09:47:40 2008 +0200 @@ -356,3 +356,16 @@ show revision history alongside an ASCII revision graph failed +% from outer space +@ changeset: 34:0eed7cd895e0 +| tag: tip +| parent: 32:77f7d8438a3c +| user: test +| date: Thu Jan 01 00:00:34 1970 +0000 +| summary: (34) head +| +o changeset: 0:7aa22e58e8c1 + user: test + date: Thu Jan 01 00:00:00 1970 +0000 + summary: (0) root +