Mercurial > public > mercurial-scm > hg
diff tests/test-log.t @ 18991:c1af1fb314bc
log: fix behavior with empty repositories (issue3497)
Make output in this special case consistent with general case one.
author | Alexander Plavin <me@aplavin.ru> |
---|---|
date | Wed, 17 Apr 2013 00:29:54 +0400 |
parents | 8260fa9f30b9 |
children | 6ba6e345961e |
line wrap: on
line diff
--- a/tests/test-log.t Tue Apr 16 13:22:29 2013 -0500 +++ b/tests/test-log.t Wed Apr 17 00:29:54 2013 +0400 @@ -1,3 +1,20 @@ +Log on empty repository: checking consistency + + $ hg init empty + $ cd empty + $ hg log + $ hg log -r 1 + abort: unknown revision '1'! + [255] + $ hg log -r -1:0 + abort: unknown revision '-1'! + [255] + $ hg log -r 'branch(name)' + abort: unknown revision 'name'! + [255] + $ hg log -r null -q + -1:000000000000 + The g is crafted to have 2 filelog topological heads in a linear changeset graph