test-wireproto: add some obsmarker discovery usage. stable
authorPierre-Yves David <pierre-yves.david@fb.com>
Tue, 21 Apr 2015 17:37:19 +0200
branchstable
changeset 1277 0ac2ad8e7235
parent 1276 18a18131e92f
child 1278 5ff8a5d85b2b
test-wireproto: add some obsmarker discovery usage. The old code was never checking that the discovery were skipping common markers. This is now done.
tests/test-wireproto.t
--- a/tests/test-wireproto.t	Tue Apr 21 17:37:59 2015 +0200
+++ b/tests/test-wireproto.t	Tue Apr 21 17:37:19 2015 +0200
@@ -98,5 +98,33 @@
   searching for changes
   no changes found
 
+Test some markers discovery
+===========================
+
+  $ echo c > C
+  $ hg add C
+  $ hg commit -m C
+  $ echo c >> C
+  $ hg amend
+  $ hg push
+  pushing to ssh://user@dummy/server
+  searching for changes
+  remote: adding changesets
+  remote: adding manifests
+  remote: adding file changes
+  remote: added 1 changesets with 1 changes to 1 files
+  remote: obsmarker-exchange: 139 bytes received
+  remote: 2 new obsolescence markers
+  $ hg -R ../other pull
+  pulling from ssh://user@dummy/server
+  searching for changes
+  adding changesets
+  adding manifests
+  adding file changes
+  added 1 changesets with 1 changes to 1 files
+  obsmarker-exchange: 139 bytes received
+  2 new obsolescence markers
+  (run 'hg update' to get a working copy)
+
   $ cd ..