1 |
|
2 Initial setup |
|
3 |
|
4 $ . $TESTDIR/testlib/exchange-util.sh |
|
5 |
|
6 === A.7 Non targeted common changeset === |
|
7 |
|
8 .. {{{ |
|
9 .. ⇠◕ A |
|
10 .. | |
|
11 .. ● O |
|
12 .. }}} |
|
13 .. |
|
14 .. Marker exist from: |
|
15 .. |
|
16 .. * Chain from A |
|
17 .. |
|
18 .. Command run: |
|
19 .. |
|
20 .. * hg push -r O |
|
21 .. |
|
22 .. Expected exchange: |
|
23 .. |
|
24 .. * ø |
|
25 |
|
26 |
|
27 $ setuprepos A.7 |
|
28 creating test repo for test case A.7 |
|
29 - pulldest |
|
30 - main |
|
31 - pushdest |
|
32 cd into `main` and proceed with env setup |
|
33 $ cd main |
|
34 $ mkcommit A |
|
35 $ hg push -q ../pushdest |
|
36 $ hg push -q ../pulldest |
|
37 $ hg debugobsolete aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa `getid 'desc(A)'` |
|
38 $ hg log -G --hidden |
|
39 @ f5bc6836db60 (draft): A |
|
40 | |
|
41 o a9bdc8b26820 (public): O |
|
42 |
|
43 $ hg debugobsolete |
|
44 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa f5bc6836db60e308a17ba08bf050154ba9c4fad7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
45 $ hg debugobsrelsethashtree |
|
46 a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04 0000000000000000000000000000000000000000 |
|
47 f5bc6836db60e308a17ba08bf050154ba9c4fad7 50656e04a95ecdfed94659dd61f663b2caa55e98 |
|
48 $ hg debugobshashrange --subranges --rev 'head()' |
|
49 rev node index size depth obshash |
|
50 1 f5bc6836db60 0 2 2 50656e04a95e |
|
51 0 a9bdc8b26820 0 1 1 000000000000 |
|
52 1 f5bc6836db60 1 1 2 50656e04a95e |
|
53 $ cd .. |
|
54 $ cd .. |
|
55 |
|
56 Actual Test |
|
57 ----------------------------------- |
|
58 |
|
59 $ dotest A.7 O |
|
60 ## Running testcase A.7 |
|
61 # testing echange of "O" (a9bdc8b26820) |
|
62 ## initial state |
|
63 # obstore: main |
|
64 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa f5bc6836db60e308a17ba08bf050154ba9c4fad7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
65 # obstore: pushdest |
|
66 # obstore: pulldest |
|
67 ## pushing "O" from main to pushdest |
|
68 pushing to pushdest |
|
69 searching for changes |
|
70 no changes found |
|
71 ## post push state |
|
72 # obstore: main |
|
73 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa f5bc6836db60e308a17ba08bf050154ba9c4fad7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
74 # obstore: pushdest |
|
75 # obstore: pulldest |
|
76 ## pulling "a9bdc8b26820" from main into pulldest |
|
77 pulling from main |
|
78 no changes found |
|
79 ## post pull state |
|
80 # obstore: main |
|
81 aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa f5bc6836db60e308a17ba08bf050154ba9c4fad7 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
|
82 # obstore: pushdest |
|
83 # obstore: pulldest |
|