# HG changeset patch # User Yuya Nishihara # Date 1423145684 -32400 # Node ID 8d295ce6e488a8f2db43648e2156da3961f45603 # Parent d1fcff9400c984c521a0af89bdf8eb192824ddd8 graphlog: remove too early return from getgraphlogrevs() for empty repo Even if repository is empty, null revision should exist. diff -r d1fcff9400c9 -r 8d295ce6e488 mercurial/cmdutil.py --- a/mercurial/cmdutil.py Thu Jan 22 22:22:09 2015 -0800 +++ b/mercurial/cmdutil.py Thu Feb 05 23:14:44 2015 +0900 @@ -1830,8 +1830,6 @@ callable taking a revision number and returning a match objects filtering the files to be detailed when displaying the revision. """ - if not len(repo): - return [], None, None limit = loglimit(opts) # Default --rev value depends on --follow but --follow behaviour # depends on revisions resolved from --rev... diff -r d1fcff9400c9 -r 8d295ce6e488 tests/test-glog.t --- a/tests/test-glog.t Thu Jan 22 22:22:09 2015 -0800 +++ b/tests/test-glog.t Thu Feb 05 23:14:44 2015 +0900 @@ -1541,6 +1541,9 @@ $ testlog --follow [] [] + $ testlog -rnull + ['null'] + [] $ echo a > a $ echo aa > aa $ echo f > f