Mercurial > public > mercurial-scm > hg
diff tests/test-add.t @ 25689:1cce81121472
revset: fix a crash in parents() when 'wdir()' is in the set
The crash was "TypeError: expected string or Unicode object, NoneType found"
down in revlog.parentrevs(). This fixes heads() too (which is where I found
it.)
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Mon, 29 Jun 2015 10:34:56 -0400 |
parents | fff8b779e63a |
children | f4412380d357 |
line wrap: on
line diff
--- a/tests/test-add.t Sun Jun 28 13:38:03 2015 -0400 +++ b/tests/test-add.t Mon Jun 29 10:34:56 2015 -0400 @@ -75,6 +75,13 @@ $ hg ci -m 0 --traceback + $ hg log -r "heads(. or wdir() & file('**'))" + changeset: 0:* (glob) + tag: tip + user: test + date: Thu Jan 01 00:00:00 1970 +0000 + summary: 0 + should fail $ hg add a @@ -99,6 +106,15 @@ M a ? a.orig +wdir doesn't cause a crash, and can be dynamically selected if dirty + + $ hg log -r "heads(. or wdir() & file('**'))" + changeset: 2:*+ (glob) + parent: 2:* (glob) + parent: 1:* (glob) + user: test + date: * (glob) + should fail $ hg add a