author | Pierre-Yves David <pierre-yves.david@fb.com> |
Fri, 03 Apr 2015 11:34:02 -0700 | |
changeset 1237 | 1439bc8c6785 |
parent 1093 | a49f2e7a2755 |
child 2083 | 778afb036245 |
permissions | -rw-r--r-- |
842
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
1 |
|
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
2 |
|
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
3 |
|
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
4 |
|
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
5 |
Initial setup |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
6 |
|
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
7 |
$ . $TESTDIR/_exc-util.sh |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
8 |
|
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
9 |
== B.6 Pruned changeset with ancestors not in pushed set === |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
10 |
|
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
11 |
.. {{{ |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
12 |
.. B ø⇠⊗ B' |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
13 |
.. | | |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
14 |
.. A ○ | |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
15 |
.. |/ |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
16 |
.. ● O |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
17 |
.. }}} |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
18 |
.. |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
19 |
.. Marker exist from: |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
20 |
.. |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
21 |
.. * `Bø⇠⊗ B'` |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
22 |
.. * B' prune |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
23 |
.. |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
24 |
.. Command run: |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
25 |
.. |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
26 |
.. * hg push -r O |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
27 |
.. |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
28 |
.. Expected exchange: |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
29 |
.. |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
30 |
.. * `Bø⇠⊗ B'` |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
31 |
.. * B' prune |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
32 |
|
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
33 |
$ setuprepos B.6 |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
34 |
creating test repo for test case B.6 |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
35 |
- pulldest |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
36 |
- main |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
37 |
- pushdest |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
38 |
cd into `main` and proceed with env setup |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
39 |
$ cd main |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
40 |
$ mkcommit A |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
41 |
$ mkcommit B0 |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
42 |
$ hg up --quiet 0 |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
43 |
$ mkcommit B1 |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
44 |
created new head |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
45 |
$ hg debugobsolete `getid 'desc(B0)'` `getid 'desc(B1)'` |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
46 |
$ hg prune -qd '0 0' . |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
47 |
$ hg log -G --hidden |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
48 |
x f6298a8ac3a4 (draft): B1 |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
49 |
| |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
50 |
| x 962ecf6b1afc (draft): B0 |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
51 |
| | |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
52 |
| o f5bc6836db60 (draft): A |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
53 |
|/ |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
54 |
@ a9bdc8b26820 (public): O |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
55 |
|
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
56 |
$ hg debugobsolete |
1065
f355bbc124fc
test: update test to new date formatting in debuobsolete output
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1060
diff
changeset
|
57 |
962ecf6b1afc94e15c7e48fdfb76ef8abd11372b f6298a8ac3a4b78bbeae5f1d3dc5bc3c3812f0f3 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
1067
5d063fed9e3d
evolve: yield to relevant markers handling in core
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1065
diff
changeset
|
58 |
f6298a8ac3a4b78bbeae5f1d3dc5bc3c3812f0f3 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
842
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
59 |
$ cd .. |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
60 |
$ cd .. |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
61 |
|
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
62 |
Actual Test |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
63 |
------------------------------------- |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
64 |
|
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
65 |
$ dotest B.6 O |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
66 |
## Running testcase B.6 |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
67 |
# testing echange of "O" (a9bdc8b26820) |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
68 |
## initial state |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
69 |
# obstore: main |
1065
f355bbc124fc
test: update test to new date formatting in debuobsolete output
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1060
diff
changeset
|
70 |
962ecf6b1afc94e15c7e48fdfb76ef8abd11372b f6298a8ac3a4b78bbeae5f1d3dc5bc3c3812f0f3 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
1067
5d063fed9e3d
evolve: yield to relevant markers handling in core
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1065
diff
changeset
|
71 |
f6298a8ac3a4b78bbeae5f1d3dc5bc3c3812f0f3 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
842
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
72 |
# obstore: pushdest |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
73 |
# obstore: pulldest |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
74 |
## pushing "O" from main to pushdest |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
75 |
pushing to pushdest |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
76 |
searching for changes |
1078
5717d023da63
obsexc: use the common discovery
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1067
diff
changeset
|
77 |
no changes found |
1093
a49f2e7a2755
obsexch: respect todosteps when using the old push
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1088
diff
changeset
|
78 |
remote: 2 new obsolescence markers |
842
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
79 |
## post push state |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
80 |
# obstore: main |
1065
f355bbc124fc
test: update test to new date formatting in debuobsolete output
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1060
diff
changeset
|
81 |
962ecf6b1afc94e15c7e48fdfb76ef8abd11372b f6298a8ac3a4b78bbeae5f1d3dc5bc3c3812f0f3 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
1067
5d063fed9e3d
evolve: yield to relevant markers handling in core
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1065
diff
changeset
|
82 |
f6298a8ac3a4b78bbeae5f1d3dc5bc3c3812f0f3 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
842
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
83 |
# obstore: pushdest |
1065
f355bbc124fc
test: update test to new date formatting in debuobsolete output
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1060
diff
changeset
|
84 |
962ecf6b1afc94e15c7e48fdfb76ef8abd11372b f6298a8ac3a4b78bbeae5f1d3dc5bc3c3812f0f3 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
1067
5d063fed9e3d
evolve: yield to relevant markers handling in core
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1065
diff
changeset
|
85 |
f6298a8ac3a4b78bbeae5f1d3dc5bc3c3812f0f3 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
842
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
86 |
# obstore: pulldest |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
87 |
## pulling "a9bdc8b26820" from main into pulldest |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
88 |
pulling from main |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
89 |
no changes found |
1093
a49f2e7a2755
obsexch: respect todosteps when using the old push
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1088
diff
changeset
|
90 |
2 new obsolescence markers |
842
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
91 |
## post pull state |
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
92 |
# obstore: main |
1065
f355bbc124fc
test: update test to new date formatting in debuobsolete output
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1060
diff
changeset
|
93 |
962ecf6b1afc94e15c7e48fdfb76ef8abd11372b f6298a8ac3a4b78bbeae5f1d3dc5bc3c3812f0f3 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
1067
5d063fed9e3d
evolve: yield to relevant markers handling in core
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1065
diff
changeset
|
94 |
f6298a8ac3a4b78bbeae5f1d3dc5bc3c3812f0f3 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
842
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
95 |
# obstore: pushdest |
1065
f355bbc124fc
test: update test to new date formatting in debuobsolete output
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1060
diff
changeset
|
96 |
962ecf6b1afc94e15c7e48fdfb76ef8abd11372b f6298a8ac3a4b78bbeae5f1d3dc5bc3c3812f0f3 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
1067
5d063fed9e3d
evolve: yield to relevant markers handling in core
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1065
diff
changeset
|
97 |
f6298a8ac3a4b78bbeae5f1d3dc5bc3c3812f0f3 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
842
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
98 |
# obstore: pulldest |
1065
f355bbc124fc
test: update test to new date formatting in debuobsolete output
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1060
diff
changeset
|
99 |
962ecf6b1afc94e15c7e48fdfb76ef8abd11372b f6298a8ac3a4b78bbeae5f1d3dc5bc3c3812f0f3 0 (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
1067
5d063fed9e3d
evolve: yield to relevant markers handling in core
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
1065
diff
changeset
|
100 |
f6298a8ac3a4b78bbeae5f1d3dc5bc3c3812f0f3 0 {a9bdc8b26820b1b87d585b82eb0ceb4a2ecdbc04} (Thu Jan 01 00:00:00 1970 +0000) {'user': 'test'} |
842
9b9bb01b9286
exchange: add test case for B.6
Pierre-Yves David <pierre-yves.david@fb.com>
parents:
diff
changeset
|
101 |