changeset 50807:8ef9cdffad6a

journal: show that we do not track deletion This was an oversight for the initial implementation.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 21 Jul 2023 15:28:52 +0200
parents 337bc83c1275
children e9a2e1c77f28
files tests/test-journal.t
diffstat 1 files changed, 16 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-journal.t	Fri Jul 21 09:22:18 2023 -0700
+++ b/tests/test-journal.t	Fri Jul 21 15:28:52 2023 +0200
@@ -84,6 +84,16 @@
   cb9a9f314b8b  book -f bar
   1e6c11564562  book -r tip bar
 
+Test that we tracks bookmark deletion
+
+  $ hg book -r . babar
+  $ hg book -f -r .~1 babar
+  $ hg book -d babar
+  $ hg journal babar
+  previous locations of 'babar':
+  cb9a9f314b8b  book -f -r '.~1' babar
+  1e6c11564562  book -r . babar
+
 Test that bookmarks and working copy tracking is not mixed
 
   $ hg journal
@@ -99,6 +109,8 @@
   $ hg journal --all
   previous locations of the working copy and bookmarks:
   1e6c11564562  baz       book -r tip baz
+  cb9a9f314b8b  babar     book -f -r '.~1' babar
+  1e6c11564562  babar     book -r . babar
   1e6c11564562  bar       up
   1e6c11564562  .         up
   cb9a9f314b8b  bar       book -f bar
@@ -127,6 +139,8 @@
   $ hg journal "re:ba."
   previous locations of 're:ba.':
   1e6c11564562  baz       book -r tip baz
+  cb9a9f314b8b  babar     book -f -r '.~1' babar
+  1e6c11564562  babar     book -r . babar
   1e6c11564562  bar       up
   cb9a9f314b8b  bar       book -f bar
   1e6c11564562  bar       book -r tip bar
@@ -136,6 +150,8 @@
   $ hg journal --verbose --all
   previous locations of the working copy and bookmarks:
   000000000000 -> 1e6c11564562 foobar    baz      1970-01-01 00:00 +0000  book -r tip baz
+  1e6c11564562 -> cb9a9f314b8b foobar    babar    1970-01-01 00:00 +0000  book -f -r '.~1' babar
+  000000000000 -> 1e6c11564562 foobar    babar    1970-01-01 00:00 +0000  book -r . babar
   cb9a9f314b8b -> 1e6c11564562 foobar    bar      1970-01-01 00:00 +0000  up
   cb9a9f314b8b -> 1e6c11564562 foobar    .        1970-01-01 00:00 +0000  up
   1e6c11564562 -> cb9a9f314b8b foobar    bar      1970-01-01 00:00 +0000  book -f bar