sapling/eden/scm/tests/test-commitcloud-sync-rb-enabling2.t
Jun Wu 9bf6b674a6 config: use Rust graph render as default
Summary: Change the legacy Python graph render to Rust renderer.

Reviewed By: DurhamG

Differential Revision: D24317802

fbshipit-source-id: 4c3dc3a6dd02b7ebe79596a8e77f4b6b139d2e20
2020-10-19 17:07:30 -07:00

85 lines
1.6 KiB
Perl

#chg-compatible
$ configure modern
$ newserver server
$ cd $TESTTMP/server
$ echo base > base
$ hg commit -Aqm base
$ hg bookmark master
$ clone server client1
$ hg --cwd client1 log -Gr 'all()' -T '{desc} {phase} {remotebookmarks}'
@ base public remote/master
$ clone server client2
$ hg --cwd client2 log -Gr 'all()' -T '{desc} {phase} {remotebookmarks}'
@ base public remote/master
Advance master
$ cd $TESTTMP/server
$ echo more >> base
$ hg commit -Aqm public1
Pull in client1
$ cd $TESTTMP/client1
$ hg pull -q
$ drawdag << 'EOS'
> X
> |
> desc(base)
> EOS
$ hg cloud sync -q
$ hg log -Gr 'all()' -T '{desc} {phase} {remotebookmarks}'
o X draft
o public1 public remote/master
@ base public
Advance master again.
$ cd $TESTTMP/server
$ echo more >> base
$ hg commit -Aqm public2
Sync in client2. The master bookmark gets synced to the same location as in
client1, but not in the server.
$ cd $TESTTMP/client2
$ hg cloud sync -q
$ hg log -Gr 'all()' -T '{desc} {phase} {remotebookmarks}'
o X draft
o public1 public remote/master
@ base public
Make changes in client2 and sync the changes to cloud.
$ drawdag << 'EOS'
> Y
> |
> desc(X)
> EOS
$ hg cloud sync -q
Sync back to client1. This does not cause lagged default/master.
$ cd $TESTTMP/client1
$ hg cloud sync -q
$ hg log -Gr 'all()' -T '{desc} {phase} {remotebookmarks}'
o Y draft
o X draft
o public1 public remote/master
@ base public