changeset 1277:0ac2ad8e7235 stable

test-wireproto: add some obsmarker discovery usage. The old code was never checking that the discovery were skipping common markers. This is now done.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 21 Apr 2015 17:37:19 +0200
parents 18a18131e92f
children 5ff8a5d85b2b
files tests/test-wireproto.t
diffstat 1 files changed, 28 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 ..