Mercurial > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
32754:b5613bda454e | 32755:d7522f983f37 |
---|---|
698 * Z 3:125c9a1d6df6 | 698 * Z 3:125c9a1d6df6 |
699 x y 2:db815d6d32e6 | 699 x y 2:db815d6d32e6 |
700 | 700 |
701 test missing revisions | 701 test missing revisions |
702 | 702 |
703 $ echo "925d80f479bc z" > .hg/bookmarks | 703 $ echo "925d80f479b925d80f479bc925d80f479bccabab z" > .hg/bookmarks |
704 $ hg book | 704 $ hg book |
705 no bookmarks set | 705 no bookmarks set |
706 | 706 |
707 test stripping a non-checked-out but bookmarked revision | 707 test stripping a non-checked-out but bookmarked revision |
708 | 708 |