Mercurial > public > mercurial-scm > hg-stable
diff tests/test-wireproto-command-changesetdata.t @ 40175:6c42409691ec
wireprotov2: stop sending phase updates for base revisions
This feature is broken and doesn't work properly in all scenarios.
e.g. if we have the following DAGs:
client server
D draft
C draft C draft
B draft B public
A public A public
The current code would only send the phase data for C. The
client wouldn't see that B moved from draft to public.
This feature will be restored in a future commit. For now, it is
making refactoring of how revisions are specified in the wire protocol
a bit difficult...
Differential Revision: https://phab.mercurial-scm.org/D4978
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Mon, 08 Oct 2018 17:54:14 -0700 |
parents | a732d70253b0 |
children | 41263df08109 |
line wrap: on
line diff
--- a/tests/test-wireproto-command-changesetdata.t Thu Oct 11 09:47:52 2018 +0200 +++ b/tests/test-wireproto-command-changesetdata.t Mon Oct 08 17:54:14 2018 -0700 @@ -426,6 +426,7 @@ ] Base nodes have just their metadata (e.g. phase) transferred +TODO this doesn't work $ sendhttpv2peer << EOF > command changesetdata @@ -439,10 +440,6 @@ b'totalitems': 3 }, { - b'node': b'3\x90\xef\x85\x00s\xfb\xc2\xf0\xdf\xff"D4,\x8e\x92)\x01:', - b'phase': b'public' - }, - { b'fieldsfollowing': [ [ b'revision',