Dmitriy Taychenachev <dimichxp@gmail.com> [Sun, 26 Oct 2008 17:08:48 +0800] rev 7262
bookmarks: do nothing if commit was not successful.
Joel Rosdahl <joel@rosdahl.net> [Sat, 25 Oct 2008 19:05:52 +0200] rev 7261
bookmarks: Add tests
Joel Rosdahl <joel@rosdahl.net> [Sat, 25 Oct 2008 19:05:52 +0200] rev 7260
bookmarks: Strip bookmark names of whitespace, just like tag names
Joel Rosdahl <joel@rosdahl.net> [Sat, 25 Oct 2008 19:05:52 +0200] rev 7259
bookmarks: Correctly reject newlines in bookmark names
Without this fix, a single newline is a valid bookmark name since
strip() removes it.
Joel Rosdahl <joel@rosdahl.net> [Sat, 25 Oct 2008 19:05:52 +0200] rev 7258
bookmarks: Require a bookmark name when a revision is specified
Joel Rosdahl <joel@rosdahl.net> [Sat, 25 Oct 2008 19:05:52 +0200] rev 7257
bookmarks: Improve documentation
Joel Rosdahl <joel@rosdahl.net> [Sat, 25 Oct 2008 19:05:52 +0200] rev 7256
bookmarks: Avoid unconditional forwarding of bookmarks for the null revision
This patch fixes the following minor problem:
% hg bookmark -r null test
% hg bookmarks
test -1:000000000000
[...]
% hg commit
% hg bookmarks
* test 17:861ce7a241f9
That is: Bookmarks referring to the null revision are always forwarded
to the current revision.
Joel Rosdahl <joel@rosdahl.net> [Sat, 25 Oct 2008 19:05:52 +0200] rev 7255
bookmarks: Rename --move to --rename
To me, --move sounds like "make an existing bookmark refer to another
revision", but --move currently means "rename an existing bookmark".
This patch renames the switch to --rename to make it easier to
understand.
Joel Rosdahl <joel@rosdahl.net> [Sat, 25 Oct 2008 19:05:52 +0200] rev 7254
bookmarks: Require new bookmark name when renaming
Joel Rosdahl <joel@rosdahl.net> [Sat, 25 Oct 2008 19:05:52 +0200] rev 7253
bookmarks: Only save undo.bookmarks if bookmarks exist
Otherwise the command will abort when there is no .hg/bookmarks file.