Mercurial > hg-stable
diff tests/test-bookmarks.t @ 32755:d7522f983f37
bookmarks: explicitly convert to 'node' during initialization
We know the content of the file is supposed to be full hex. So we can do the
translation ourselves and directly check if the node is known.
As nice side effect we now have proper error handling for invalid node value.
Before:
! wall 0.021580 comb 0.020000 user 0.020000 sys 0.000000 (best of 134)
After:
! wall 0.009342 comb 0.010000 user 0.010000 sys 0.000000 (best of 302)
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 07 Jun 2017 22:26:43 +0100 |
parents | 579df5aaa425 |
children | 0bec70c1df15 |
line wrap: on
line diff
--- a/tests/test-bookmarks.t Wed Jun 07 19:21:02 2017 +0100 +++ b/tests/test-bookmarks.t Wed Jun 07 22:26:43 2017 +0100 @@ -700,7 +700,7 @@ test missing revisions - $ echo "925d80f479bc z" > .hg/bookmarks + $ echo "925d80f479b925d80f479bc925d80f479bccabab z" > .hg/bookmarks $ hg book no bookmarks set