| 1 |
Set up a base, local, and remote changeset, as well as the working copy state. |
| 2 |
Files names are of the form base_remote_local_working-copy. For example, |
| 3 |
content1_content2_content1_content2-untracked represents a |
| 4 |
file that was modified in the remote changeset, left untouched in the |
| 5 |
local changeset, and then modified in the working copy to match the |
| 6 |
remote content, then finally forgotten. |
| 7 |
|
| 8 |
$ hg init repo |
| 9 |
$ cd repo |
| 10 |
|
| 11 |
Create base changeset |
| 12 |
|
| 13 |
$ "$PYTHON" $TESTDIR/generate-working-copy-states.py state 3 1 |
| 14 |
$ hg addremove -q --similarity 0 |
| 15 |
$ hg commit -qm 'base' |
| 16 |
|
| 17 |
Create remote changeset |
| 18 |
|
| 19 |
$ "$PYTHON" $TESTDIR/generate-working-copy-states.py state 3 2 |
| 20 |
$ hg addremove -q --similarity 0 |
| 21 |
$ hg commit -qm 'remote' |
| 22 |
|
| 23 |
Create local changeset |
| 24 |
|
| 25 |
$ hg update -q 0 |
| 26 |
$ "$PYTHON" $TESTDIR/generate-working-copy-states.py state 3 3 |
| 27 |
$ hg addremove -q --similarity 0 |
| 28 |
$ hg commit -qm 'local' |
| 29 |
|
| 30 |
Set up working directory |
| 31 |
|
| 32 |
$ "$PYTHON" $TESTDIR/generate-working-copy-states.py state 3 wc |
| 33 |
$ hg addremove -q --similarity 0 |
| 34 |
$ hg forget *_*_*_*-untracked |
| 35 |
$ rm *_*_*_missing-* |
| 36 |
|
| 37 |
$ hg status -A |
| 38 |
M content1_content1_content1_content4-tracked |
| 39 |
M content1_content1_content3_content1-tracked |
| 40 |
M content1_content1_content3_content4-tracked |
| 41 |
M content1_content2_content1_content2-tracked |
| 42 |
M content1_content2_content1_content4-tracked |
| 43 |
M content1_content2_content2_content1-tracked |
| 44 |
M content1_content2_content2_content4-tracked |
| 45 |
M content1_content2_content3_content1-tracked |
| 46 |
M content1_content2_content3_content2-tracked |
| 47 |
M content1_content2_content3_content4-tracked |
| 48 |
M content1_missing_content1_content4-tracked |
| 49 |
M content1_missing_content3_content1-tracked |
| 50 |
M content1_missing_content3_content4-tracked |
| 51 |
M missing_content2_content2_content4-tracked |
| 52 |
M missing_content2_content3_content2-tracked |
| 53 |
M missing_content2_content3_content4-tracked |
| 54 |
M missing_missing_content3_content4-tracked |
| 55 |
A content1_content1_missing_content1-tracked |
| 56 |
A content1_content1_missing_content4-tracked |
| 57 |
A content1_content2_missing_content1-tracked |
| 58 |
A content1_content2_missing_content2-tracked |
| 59 |
A content1_content2_missing_content4-tracked |
| 60 |
A content1_missing_missing_content1-tracked |
| 61 |
A content1_missing_missing_content4-tracked |
| 62 |
A missing_content2_missing_content2-tracked |
| 63 |
A missing_content2_missing_content4-tracked |
| 64 |
A missing_missing_missing_content4-tracked |
| 65 |
R content1_content1_content1_content1-untracked |
| 66 |
R content1_content1_content1_content4-untracked |
| 67 |
R content1_content1_content1_missing-untracked |
| 68 |
R content1_content1_content3_content1-untracked |
| 69 |
R content1_content1_content3_content3-untracked |
| 70 |
R content1_content1_content3_content4-untracked |
| 71 |
R content1_content1_content3_missing-untracked |
| 72 |
R content1_content2_content1_content1-untracked |
| 73 |
R content1_content2_content1_content2-untracked |
| 74 |
R content1_content2_content1_content4-untracked |
| 75 |
R content1_content2_content1_missing-untracked |
| 76 |
R content1_content2_content2_content1-untracked |
| 77 |
R content1_content2_content2_content2-untracked |
| 78 |
R content1_content2_content2_content4-untracked |
| 79 |
R content1_content2_content2_missing-untracked |
| 80 |
R content1_content2_content3_content1-untracked |
| 81 |
R content1_content2_content3_content2-untracked |
| 82 |
R content1_content2_content3_content3-untracked |
| 83 |
R content1_content2_content3_content4-untracked |
| 84 |
R content1_content2_content3_missing-untracked |
| 85 |
R content1_missing_content1_content1-untracked |
| 86 |
R content1_missing_content1_content4-untracked |
| 87 |
R content1_missing_content1_missing-untracked |
| 88 |
R content1_missing_content3_content1-untracked |
| 89 |
R content1_missing_content3_content3-untracked |
| 90 |
R content1_missing_content3_content4-untracked |
| 91 |
R content1_missing_content3_missing-untracked |
| 92 |
R missing_content2_content2_content2-untracked |
| 93 |
R missing_content2_content2_content4-untracked |
| 94 |
R missing_content2_content2_missing-untracked |
| 95 |
R missing_content2_content3_content2-untracked |
| 96 |
R missing_content2_content3_content3-untracked |
| 97 |
R missing_content2_content3_content4-untracked |
| 98 |
R missing_content2_content3_missing-untracked |
| 99 |
R missing_missing_content3_content3-untracked |
| 100 |
R missing_missing_content3_content4-untracked |
| 101 |
R missing_missing_content3_missing-untracked |
| 102 |
! content1_content1_content1_missing-tracked |
| 103 |
! content1_content1_content3_missing-tracked |
| 104 |
! content1_content1_missing_missing-tracked |
| 105 |
! content1_content2_content1_missing-tracked |
| 106 |
! content1_content2_content2_missing-tracked |
| 107 |
! content1_content2_content3_missing-tracked |
| 108 |
! content1_content2_missing_missing-tracked |
| 109 |
! content1_missing_content1_missing-tracked |
| 110 |
! content1_missing_content3_missing-tracked |
| 111 |
! content1_missing_missing_missing-tracked |
| 112 |
! missing_content2_content2_missing-tracked |
| 113 |
! missing_content2_content3_missing-tracked |
| 114 |
! missing_content2_missing_missing-tracked |
| 115 |
! missing_missing_content3_missing-tracked |
| 116 |
! missing_missing_missing_missing-tracked |
| 117 |
? content1_content1_missing_content1-untracked |
| 118 |
? content1_content1_missing_content4-untracked |
| 119 |
? content1_content2_missing_content1-untracked |
| 120 |
? content1_content2_missing_content2-untracked |
| 121 |
? content1_content2_missing_content4-untracked |
| 122 |
? content1_missing_missing_content1-untracked |
| 123 |
? content1_missing_missing_content4-untracked |
| 124 |
? missing_content2_missing_content2-untracked |
| 125 |
? missing_content2_missing_content4-untracked |
| 126 |
? missing_missing_missing_content4-untracked |
| 127 |
C content1_content1_content1_content1-tracked |
| 128 |
C content1_content1_content3_content3-tracked |
| 129 |
C content1_content2_content1_content1-tracked |
| 130 |
C content1_content2_content2_content2-tracked |
| 131 |
C content1_content2_content3_content3-tracked |
| 132 |
C content1_missing_content1_content1-tracked |
| 133 |
C content1_missing_content3_content3-tracked |
| 134 |
C missing_content2_content2_content2-tracked |
| 135 |
C missing_content2_content3_content3-tracked |
| 136 |
C missing_missing_content3_content3-tracked |
| 137 |
|
| 138 |
Merge with remote |
| 139 |
|
| 140 |
# Notes: |
| 141 |
# - local and remote changed content1_content2_*_content2-untracked |
| 142 |
# in the same way, so it could potentially be left alone |
| 143 |
|
| 144 |
$ hg merge -f --tool internal:merge3 'desc("remote")' 2>&1 | tee $TESTTMP/merge-output-1 |
| 145 |
file 'content1_missing_content1_content4-tracked' was deleted in other [merge rev] but was modified in local [working copy]. |
| 146 |
You can use (c)hanged version, (d)elete, or leave (u)nresolved. |
| 147 |
What do you want to do? u |
| 148 |
file 'content1_missing_content3_content3-tracked' was deleted in other [merge rev] but was modified in local [working copy]. |
| 149 |
You can use (c)hanged version, (d)elete, or leave (u)nresolved. |
| 150 |
What do you want to do? u |
| 151 |
file 'content1_missing_content3_content4-tracked' was deleted in other [merge rev] but was modified in local [working copy]. |
| 152 |
You can use (c)hanged version, (d)elete, or leave (u)nresolved. |
| 153 |
What do you want to do? u |
| 154 |
file 'content1_missing_missing_content4-tracked' was deleted in other [merge rev] but was modified in local [working copy]. |
| 155 |
You can use (c)hanged version, (d)elete, or leave (u)nresolved. |
| 156 |
What do you want to do? u |
| 157 |
file 'content1_content2_content1_content1-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 158 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 159 |
What do you want to do? u |
| 160 |
file 'content1_content2_content1_content2-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 161 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 162 |
What do you want to do? u |
| 163 |
file 'content1_content2_content1_content4-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 164 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 165 |
What do you want to do? u |
| 166 |
file 'content1_content2_content1_missing-tracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 167 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 168 |
What do you want to do? u |
| 169 |
file 'content1_content2_content1_missing-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 170 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 171 |
What do you want to do? u |
| 172 |
file 'content1_content2_content2_content1-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 173 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 174 |
What do you want to do? u |
| 175 |
file 'content1_content2_content2_content2-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 176 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 177 |
What do you want to do? u |
| 178 |
file 'content1_content2_content2_content4-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 179 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 180 |
What do you want to do? u |
| 181 |
file 'content1_content2_content2_missing-tracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 182 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 183 |
What do you want to do? u |
| 184 |
file 'content1_content2_content2_missing-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 185 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 186 |
What do you want to do? u |
| 187 |
file 'content1_content2_content3_content1-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 188 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 189 |
What do you want to do? u |
| 190 |
file 'content1_content2_content3_content2-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 191 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 192 |
What do you want to do? u |
| 193 |
file 'content1_content2_content3_content3-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 194 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 195 |
What do you want to do? u |
| 196 |
file 'content1_content2_content3_content4-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 197 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 198 |
What do you want to do? u |
| 199 |
file 'content1_content2_content3_missing-tracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 200 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 201 |
What do you want to do? u |
| 202 |
file 'content1_content2_content3_missing-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 203 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 204 |
What do you want to do? u |
| 205 |
file 'content1_content2_missing_content1-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 206 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 207 |
What do you want to do? u |
| 208 |
file 'content1_content2_missing_content2-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 209 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 210 |
What do you want to do? u |
| 211 |
file 'content1_content2_missing_content4-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 212 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 213 |
What do you want to do? u |
| 214 |
file 'content1_content2_missing_missing-tracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 215 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 216 |
What do you want to do? u |
| 217 |
file 'content1_content2_missing_missing-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 218 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 219 |
What do you want to do? u |
| 220 |
merging content1_content2_content1_content4-tracked |
| 221 |
warning: conflicts while merging content1_content2_content1_content4-tracked! (edit, then use 'hg resolve --mark') |
| 222 |
merging content1_content2_content2_content1-tracked |
| 223 |
merging content1_content2_content2_content4-tracked |
| 224 |
warning: conflicts while merging content1_content2_content2_content4-tracked! (edit, then use 'hg resolve --mark') |
| 225 |
merging content1_content2_content3_content1-tracked |
| 226 |
merging content1_content2_content3_content3-tracked |
| 227 |
warning: conflicts while merging content1_content2_content3_content3-tracked! (edit, then use 'hg resolve --mark') |
| 228 |
merging content1_content2_content3_content4-tracked |
| 229 |
warning: conflicts while merging content1_content2_content3_content4-tracked! (edit, then use 'hg resolve --mark') |
| 230 |
merging content1_content2_missing_content1-tracked |
| 231 |
merging content1_content2_missing_content4-tracked |
| 232 |
warning: conflicts while merging content1_content2_missing_content4-tracked! (edit, then use 'hg resolve --mark') |
| 233 |
merging missing_content2_content2_content4-tracked |
| 234 |
warning: conflicts while merging missing_content2_content2_content4-tracked! (edit, then use 'hg resolve --mark') |
| 235 |
merging missing_content2_content3_content3-tracked |
| 236 |
warning: conflicts while merging missing_content2_content3_content3-tracked! (edit, then use 'hg resolve --mark') |
| 237 |
merging missing_content2_content3_content4-tracked |
| 238 |
warning: conflicts while merging missing_content2_content3_content4-tracked! (edit, then use 'hg resolve --mark') |
| 239 |
merging missing_content2_missing_content4-tracked |
| 240 |
warning: conflicts while merging missing_content2_missing_content4-tracked! (edit, then use 'hg resolve --mark') |
| 241 |
merging missing_content2_missing_content4-untracked |
| 242 |
warning: conflicts while merging missing_content2_missing_content4-untracked! (edit, then use 'hg resolve --mark') |
| 243 |
18 files updated, 3 files merged, 8 files removed, 35 files unresolved |
| 244 |
use 'hg resolve' to retry unresolved file merges or 'hg merge --abort' to abandon |
| 245 |
|
| 246 |
Check which files need to be resolved (should correspond to the output above). |
| 247 |
This should be the files for which the base (1st filename segment), the remote |
| 248 |
(2nd segment) and the working copy (4th segment) are all different. |
| 249 |
|
| 250 |
Interestingly, one untracked file got merged and added, which corresponds to the |
| 251 |
odd 'if force and branchmerge and different' case in manifestmerge(). |
| 252 |
|
| 253 |
$ hg resolve -l |
| 254 |
U content1_content2_content1_content1-untracked |
| 255 |
U content1_content2_content1_content2-untracked |
| 256 |
U content1_content2_content1_content4-tracked |
| 257 |
U content1_content2_content1_content4-untracked |
| 258 |
U content1_content2_content1_missing-tracked |
| 259 |
U content1_content2_content1_missing-untracked |
| 260 |
R content1_content2_content2_content1-tracked |
| 261 |
U content1_content2_content2_content1-untracked |
| 262 |
U content1_content2_content2_content2-untracked |
| 263 |
U content1_content2_content2_content4-tracked |
| 264 |
U content1_content2_content2_content4-untracked |
| 265 |
U content1_content2_content2_missing-tracked |
| 266 |
U content1_content2_content2_missing-untracked |
| 267 |
R content1_content2_content3_content1-tracked |
| 268 |
U content1_content2_content3_content1-untracked |
| 269 |
U content1_content2_content3_content2-untracked |
| 270 |
U content1_content2_content3_content3-tracked |
| 271 |
U content1_content2_content3_content3-untracked |
| 272 |
U content1_content2_content3_content4-tracked |
| 273 |
U content1_content2_content3_content4-untracked |
| 274 |
U content1_content2_content3_missing-tracked |
| 275 |
U content1_content2_content3_missing-untracked |
| 276 |
R content1_content2_missing_content1-tracked |
| 277 |
U content1_content2_missing_content1-untracked |
| 278 |
U content1_content2_missing_content2-untracked |
| 279 |
U content1_content2_missing_content4-tracked |
| 280 |
U content1_content2_missing_content4-untracked |
| 281 |
U content1_content2_missing_missing-tracked |
| 282 |
U content1_content2_missing_missing-untracked |
| 283 |
U content1_missing_content1_content4-tracked |
| 284 |
U content1_missing_content3_content3-tracked |
| 285 |
U content1_missing_content3_content4-tracked |
| 286 |
U content1_missing_missing_content4-tracked |
| 287 |
U missing_content2_content2_content4-tracked |
| 288 |
U missing_content2_content3_content3-tracked |
| 289 |
U missing_content2_content3_content4-tracked |
| 290 |
U missing_content2_missing_content4-tracked |
| 291 |
U missing_content2_missing_content4-untracked |
| 292 |
|
| 293 |
Check status and file content |
| 294 |
|
| 295 |
Some files get added (e.g. content1_content2_content1_content1-untracked) |
| 296 |
|
| 297 |
It is not intuitive that content1_content2_content1_content4-tracked gets |
| 298 |
merged while content1_content2_content1_content4-untracked gets overwritten. |
| 299 |
Any *_content2_*-untracked triggers the modified/deleted prompt and then gets |
| 300 |
overwritten. |
| 301 |
|
| 302 |
A lot of untracked files become tracked, for example |
| 303 |
content1_content2_content2_content2-untracked. |
| 304 |
|
| 305 |
*_missing_missing_missing-tracked is reported as removed ('R'), which |
| 306 |
doesn't make sense since the file did not exist in the parent, but on the |
| 307 |
other hand, merged-in additions are reported as modifications, which is |
| 308 |
almost as strange. |
| 309 |
|
| 310 |
missing_missing_content3_missing-tracked becomes removed ('R'), even though |
| 311 |
the remote side did not touch the file |
| 312 |
|
| 313 |
$ checkstatus() { |
| 314 |
> for f in `"$PYTHON" $TESTDIR/generate-working-copy-states.py filelist 3` |
| 315 |
> do |
| 316 |
> echo |
| 317 |
> hg status -A $f |
| 318 |
> if test -f $f |
| 319 |
> then |
| 320 |
> cat $f |
| 321 |
> else |
| 322 |
> echo '<missing>' |
| 323 |
> fi |
| 324 |
> done |
| 325 |
> } |
| 326 |
$ checkstatus 2>&1 | tee $TESTTMP/status1 |
| 327 |
|
| 328 |
C content1_content1_content1_content1-tracked |
| 329 |
content1 |
| 330 |
|
| 331 |
R content1_content1_content1_content1-untracked |
| 332 |
content1 |
| 333 |
|
| 334 |
M content1_content1_content1_content4-tracked |
| 335 |
content4 |
| 336 |
|
| 337 |
R content1_content1_content1_content4-untracked |
| 338 |
content4 |
| 339 |
|
| 340 |
! content1_content1_content1_missing-tracked |
| 341 |
<missing> |
| 342 |
|
| 343 |
R content1_content1_content1_missing-untracked |
| 344 |
<missing> |
| 345 |
|
| 346 |
M content1_content1_content3_content1-tracked |
| 347 |
content1 |
| 348 |
|
| 349 |
R content1_content1_content3_content1-untracked |
| 350 |
content1 |
| 351 |
|
| 352 |
C content1_content1_content3_content3-tracked |
| 353 |
content3 |
| 354 |
|
| 355 |
R content1_content1_content3_content3-untracked |
| 356 |
content3 |
| 357 |
|
| 358 |
M content1_content1_content3_content4-tracked |
| 359 |
content4 |
| 360 |
|
| 361 |
R content1_content1_content3_content4-untracked |
| 362 |
content4 |
| 363 |
|
| 364 |
! content1_content1_content3_missing-tracked |
| 365 |
<missing> |
| 366 |
|
| 367 |
R content1_content1_content3_missing-untracked |
| 368 |
<missing> |
| 369 |
|
| 370 |
A content1_content1_missing_content1-tracked |
| 371 |
content1 |
| 372 |
|
| 373 |
? content1_content1_missing_content1-untracked |
| 374 |
content1 |
| 375 |
|
| 376 |
A content1_content1_missing_content4-tracked |
| 377 |
content4 |
| 378 |
|
| 379 |
? content1_content1_missing_content4-untracked |
| 380 |
content4 |
| 381 |
|
| 382 |
! content1_content1_missing_missing-tracked |
| 383 |
<missing> |
| 384 |
|
| 385 |
content1_content1_missing_missing-untracked: * (glob) |
| 386 |
<missing> |
| 387 |
|
| 388 |
M content1_content2_content1_content1-tracked |
| 389 |
content2 |
| 390 |
|
| 391 |
M content1_content2_content1_content1-untracked |
| 392 |
content2 |
| 393 |
|
| 394 |
M content1_content2_content1_content2-tracked |
| 395 |
content2 |
| 396 |
|
| 397 |
M content1_content2_content1_content2-untracked |
| 398 |
content2 |
| 399 |
|
| 400 |
M content1_content2_content1_content4-tracked |
| 401 |
<<<<<<< working copy: 0447570f1af6 - test: local |
| 402 |
content4 |
| 403 |
||||||| common ancestor: 8ef80617fa20 - test: base |
| 404 |
content1 |
| 405 |
======= |
| 406 |
content2 |
| 407 |
>>>>>>> merge rev: 85100b8c675b - test: remote |
| 408 |
|
| 409 |
M content1_content2_content1_content4-untracked |
| 410 |
content2 |
| 411 |
|
| 412 |
M content1_content2_content1_missing-tracked |
| 413 |
content2 |
| 414 |
|
| 415 |
M content1_content2_content1_missing-untracked |
| 416 |
content2 |
| 417 |
|
| 418 |
M content1_content2_content2_content1-tracked |
| 419 |
content2 |
| 420 |
|
| 421 |
M content1_content2_content2_content1-untracked |
| 422 |
content2 |
| 423 |
|
| 424 |
C content1_content2_content2_content2-tracked |
| 425 |
content2 |
| 426 |
|
| 427 |
M content1_content2_content2_content2-untracked |
| 428 |
content2 |
| 429 |
|
| 430 |
M content1_content2_content2_content4-tracked |
| 431 |
<<<<<<< working copy: 0447570f1af6 - test: local |
| 432 |
content4 |
| 433 |
||||||| common ancestor: 8ef80617fa20 - test: base |
| 434 |
content1 |
| 435 |
======= |
| 436 |
content2 |
| 437 |
>>>>>>> merge rev: 85100b8c675b - test: remote |
| 438 |
|
| 439 |
M content1_content2_content2_content4-untracked |
| 440 |
content2 |
| 441 |
|
| 442 |
M content1_content2_content2_missing-tracked |
| 443 |
content2 |
| 444 |
|
| 445 |
M content1_content2_content2_missing-untracked |
| 446 |
content2 |
| 447 |
|
| 448 |
M content1_content2_content3_content1-tracked |
| 449 |
content2 |
| 450 |
|
| 451 |
M content1_content2_content3_content1-untracked |
| 452 |
content2 |
| 453 |
|
| 454 |
M content1_content2_content3_content2-tracked |
| 455 |
content2 |
| 456 |
|
| 457 |
M content1_content2_content3_content2-untracked |
| 458 |
content2 |
| 459 |
|
| 460 |
M content1_content2_content3_content3-tracked |
| 461 |
<<<<<<< working copy: 0447570f1af6 - test: local |
| 462 |
content3 |
| 463 |
||||||| common ancestor: 8ef80617fa20 - test: base |
| 464 |
content1 |
| 465 |
======= |
| 466 |
content2 |
| 467 |
>>>>>>> merge rev: 85100b8c675b - test: remote |
| 468 |
|
| 469 |
M content1_content2_content3_content3-untracked |
| 470 |
content2 |
| 471 |
|
| 472 |
M content1_content2_content3_content4-tracked |
| 473 |
<<<<<<< working copy: 0447570f1af6 - test: local |
| 474 |
content4 |
| 475 |
||||||| common ancestor: 8ef80617fa20 - test: base |
| 476 |
content1 |
| 477 |
======= |
| 478 |
content2 |
| 479 |
>>>>>>> merge rev: 85100b8c675b - test: remote |
| 480 |
|
| 481 |
M content1_content2_content3_content4-untracked |
| 482 |
content2 |
| 483 |
|
| 484 |
M content1_content2_content3_missing-tracked |
| 485 |
content2 |
| 486 |
|
| 487 |
M content1_content2_content3_missing-untracked |
| 488 |
content2 |
| 489 |
|
| 490 |
M content1_content2_missing_content1-tracked |
| 491 |
content2 |
| 492 |
|
| 493 |
M content1_content2_missing_content1-untracked |
| 494 |
content2 |
| 495 |
|
| 496 |
M content1_content2_missing_content2-tracked |
| 497 |
content2 |
| 498 |
|
| 499 |
M content1_content2_missing_content2-untracked |
| 500 |
content2 |
| 501 |
|
| 502 |
M content1_content2_missing_content4-tracked |
| 503 |
<<<<<<< working copy: 0447570f1af6 - test: local |
| 504 |
content4 |
| 505 |
||||||| common ancestor: 8ef80617fa20 - test: base |
| 506 |
content1 |
| 507 |
======= |
| 508 |
content2 |
| 509 |
>>>>>>> merge rev: 85100b8c675b - test: remote |
| 510 |
|
| 511 |
M content1_content2_missing_content4-untracked |
| 512 |
content2 |
| 513 |
|
| 514 |
M content1_content2_missing_missing-tracked |
| 515 |
content2 |
| 516 |
|
| 517 |
M content1_content2_missing_missing-untracked |
| 518 |
content2 |
| 519 |
|
| 520 |
R content1_missing_content1_content1-tracked |
| 521 |
<missing> |
| 522 |
|
| 523 |
R content1_missing_content1_content1-untracked |
| 524 |
content1 |
| 525 |
|
| 526 |
M content1_missing_content1_content4-tracked |
| 527 |
content4 |
| 528 |
|
| 529 |
R content1_missing_content1_content4-untracked |
| 530 |
content4 |
| 531 |
|
| 532 |
R content1_missing_content1_missing-tracked |
| 533 |
<missing> |
| 534 |
|
| 535 |
R content1_missing_content1_missing-untracked |
| 536 |
<missing> |
| 537 |
|
| 538 |
R content1_missing_content3_content1-tracked |
| 539 |
<missing> |
| 540 |
|
| 541 |
R content1_missing_content3_content1-untracked |
| 542 |
content1 |
| 543 |
|
| 544 |
C content1_missing_content3_content3-tracked |
| 545 |
content3 |
| 546 |
|
| 547 |
R content1_missing_content3_content3-untracked |
| 548 |
content3 |
| 549 |
|
| 550 |
M content1_missing_content3_content4-tracked |
| 551 |
content4 |
| 552 |
|
| 553 |
R content1_missing_content3_content4-untracked |
| 554 |
content4 |
| 555 |
|
| 556 |
R content1_missing_content3_missing-tracked |
| 557 |
<missing> |
| 558 |
|
| 559 |
R content1_missing_content3_missing-untracked |
| 560 |
<missing> |
| 561 |
|
| 562 |
R content1_missing_missing_content1-tracked |
| 563 |
<missing> |
| 564 |
|
| 565 |
? content1_missing_missing_content1-untracked |
| 566 |
content1 |
| 567 |
|
| 568 |
A content1_missing_missing_content4-tracked |
| 569 |
content4 |
| 570 |
|
| 571 |
? content1_missing_missing_content4-untracked |
| 572 |
content4 |
| 573 |
|
| 574 |
R content1_missing_missing_missing-tracked |
| 575 |
<missing> |
| 576 |
|
| 577 |
content1_missing_missing_missing-untracked: * (glob) |
| 578 |
<missing> |
| 579 |
|
| 580 |
C missing_content2_content2_content2-tracked |
| 581 |
content2 |
| 582 |
|
| 583 |
M missing_content2_content2_content2-untracked |
| 584 |
content2 |
| 585 |
|
| 586 |
M missing_content2_content2_content4-tracked |
| 587 |
<<<<<<< working copy: 0447570f1af6 - test: local |
| 588 |
content4 |
| 589 |
||||||| common ancestor: 000000000000 - : |
| 590 |
======= |
| 591 |
content2 |
| 592 |
>>>>>>> merge rev: 85100b8c675b - test: remote |
| 593 |
|
| 594 |
M missing_content2_content2_content4-untracked |
| 595 |
content2 |
| 596 |
|
| 597 |
M missing_content2_content2_missing-tracked |
| 598 |
content2 |
| 599 |
|
| 600 |
M missing_content2_content2_missing-untracked |
| 601 |
content2 |
| 602 |
|
| 603 |
M missing_content2_content3_content2-tracked |
| 604 |
content2 |
| 605 |
|
| 606 |
M missing_content2_content3_content2-untracked |
| 607 |
content2 |
| 608 |
|
| 609 |
M missing_content2_content3_content3-tracked |
| 610 |
<<<<<<< working copy: 0447570f1af6 - test: local |
| 611 |
content3 |
| 612 |
||||||| common ancestor: 000000000000 - : |
| 613 |
======= |
| 614 |
content2 |
| 615 |
>>>>>>> merge rev: 85100b8c675b - test: remote |
| 616 |
|
| 617 |
M missing_content2_content3_content3-untracked |
| 618 |
content2 |
| 619 |
|
| 620 |
M missing_content2_content3_content4-tracked |
| 621 |
<<<<<<< working copy: 0447570f1af6 - test: local |
| 622 |
content4 |
| 623 |
||||||| common ancestor: 000000000000 - : |
| 624 |
======= |
| 625 |
content2 |
| 626 |
>>>>>>> merge rev: 85100b8c675b - test: remote |
| 627 |
|
| 628 |
M missing_content2_content3_content4-untracked |
| 629 |
content2 |
| 630 |
|
| 631 |
M missing_content2_content3_missing-tracked |
| 632 |
content2 |
| 633 |
|
| 634 |
M missing_content2_content3_missing-untracked |
| 635 |
content2 |
| 636 |
|
| 637 |
M missing_content2_missing_content2-tracked |
| 638 |
content2 |
| 639 |
|
| 640 |
M missing_content2_missing_content2-untracked |
| 641 |
content2 |
| 642 |
|
| 643 |
M missing_content2_missing_content4-tracked |
| 644 |
<<<<<<< working copy: 0447570f1af6 - test: local |
| 645 |
content4 |
| 646 |
||||||| common ancestor: 000000000000 - : |
| 647 |
======= |
| 648 |
content2 |
| 649 |
>>>>>>> merge rev: 85100b8c675b - test: remote |
| 650 |
|
| 651 |
M missing_content2_missing_content4-untracked |
| 652 |
<<<<<<< working copy: 0447570f1af6 - test: local |
| 653 |
content4 |
| 654 |
||||||| common ancestor: 000000000000 - : |
| 655 |
======= |
| 656 |
content2 |
| 657 |
>>>>>>> merge rev: 85100b8c675b - test: remote |
| 658 |
|
| 659 |
M missing_content2_missing_missing-tracked |
| 660 |
content2 |
| 661 |
|
| 662 |
M missing_content2_missing_missing-untracked |
| 663 |
content2 |
| 664 |
|
| 665 |
C missing_missing_content3_content3-tracked |
| 666 |
content3 |
| 667 |
|
| 668 |
R missing_missing_content3_content3-untracked |
| 669 |
content3 |
| 670 |
|
| 671 |
M missing_missing_content3_content4-tracked |
| 672 |
content4 |
| 673 |
|
| 674 |
R missing_missing_content3_content4-untracked |
| 675 |
content4 |
| 676 |
|
| 677 |
R missing_missing_content3_missing-tracked |
| 678 |
<missing> |
| 679 |
|
| 680 |
R missing_missing_content3_missing-untracked |
| 681 |
<missing> |
| 682 |
|
| 683 |
A missing_missing_missing_content4-tracked |
| 684 |
content4 |
| 685 |
|
| 686 |
? missing_missing_missing_content4-untracked |
| 687 |
content4 |
| 688 |
|
| 689 |
R missing_missing_missing_missing-tracked |
| 690 |
<missing> |
| 691 |
|
| 692 |
missing_missing_missing_missing-untracked: * (glob) |
| 693 |
<missing> |
| 694 |
|
| 695 |
$ for f in `"$PYTHON" $TESTDIR/generate-working-copy-states.py filelist 3` |
| 696 |
> do |
| 697 |
> if test -f ${f}.orig |
| 698 |
> then |
| 699 |
> echo ${f}.orig: |
| 700 |
> cat ${f}.orig |
| 701 |
> fi |
| 702 |
> done |
| 703 |
content1_content2_content1_content4-tracked.orig: |
| 704 |
content4 |
| 705 |
content1_content2_content2_content4-tracked.orig: |
| 706 |
content4 |
| 707 |
content1_content2_content3_content3-tracked.orig: |
| 708 |
content3 |
| 709 |
content1_content2_content3_content4-tracked.orig: |
| 710 |
content4 |
| 711 |
content1_content2_missing_content4-tracked.orig: |
| 712 |
content4 |
| 713 |
missing_content2_content2_content4-tracked.orig: |
| 714 |
content4 |
| 715 |
missing_content2_content3_content3-tracked.orig: |
| 716 |
content3 |
| 717 |
missing_content2_content3_content4-tracked.orig: |
| 718 |
content4 |
| 719 |
missing_content2_missing_content4-tracked.orig: |
| 720 |
content4 |
| 721 |
missing_content2_missing_content4-untracked.orig: |
| 722 |
content4 |
| 723 |
|
| 724 |
Re-resolve and check status |
| 725 |
|
| 726 |
$ hg resolve --unmark --all |
| 727 |
$ hg resolve --all --tool :local |
| 728 |
(no more unresolved files) |
| 729 |
$ hg resolve --unmark --all |
| 730 |
$ hg resolve --all --tool internal:merge3 |
| 731 |
file 'content1_content2_content1_content1-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 732 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 733 |
What do you want to do? u |
| 734 |
file 'content1_content2_content1_content2-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 735 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 736 |
What do you want to do? u |
| 737 |
merging content1_content2_content1_content4-tracked |
| 738 |
warning: conflicts while merging content1_content2_content1_content4-tracked! (edit, then use 'hg resolve --mark') |
| 739 |
file 'content1_content2_content1_content4-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 740 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 741 |
What do you want to do? u |
| 742 |
file 'content1_content2_content1_missing-tracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 743 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 744 |
What do you want to do? u |
| 745 |
file 'content1_content2_content1_missing-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 746 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 747 |
What do you want to do? u |
| 748 |
merging content1_content2_content2_content1-tracked |
| 749 |
file 'content1_content2_content2_content1-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 750 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 751 |
What do you want to do? u |
| 752 |
file 'content1_content2_content2_content2-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 753 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 754 |
What do you want to do? u |
| 755 |
merging content1_content2_content2_content4-tracked |
| 756 |
warning: conflicts while merging content1_content2_content2_content4-tracked! (edit, then use 'hg resolve --mark') |
| 757 |
file 'content1_content2_content2_content4-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 758 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 759 |
What do you want to do? u |
| 760 |
file 'content1_content2_content2_missing-tracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 761 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 762 |
What do you want to do? u |
| 763 |
file 'content1_content2_content2_missing-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 764 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 765 |
What do you want to do? u |
| 766 |
merging content1_content2_content3_content1-tracked |
| 767 |
file 'content1_content2_content3_content1-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 768 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 769 |
What do you want to do? u |
| 770 |
file 'content1_content2_content3_content2-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 771 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 772 |
What do you want to do? u |
| 773 |
merging content1_content2_content3_content3-tracked |
| 774 |
warning: conflicts while merging content1_content2_content3_content3-tracked! (edit, then use 'hg resolve --mark') |
| 775 |
file 'content1_content2_content3_content3-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 776 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 777 |
What do you want to do? u |
| 778 |
merging content1_content2_content3_content4-tracked |
| 779 |
warning: conflicts while merging content1_content2_content3_content4-tracked! (edit, then use 'hg resolve --mark') |
| 780 |
file 'content1_content2_content3_content4-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 781 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 782 |
What do you want to do? u |
| 783 |
file 'content1_content2_content3_missing-tracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 784 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 785 |
What do you want to do? u |
| 786 |
file 'content1_content2_content3_missing-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 787 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 788 |
What do you want to do? u |
| 789 |
merging content1_content2_missing_content1-tracked |
| 790 |
file 'content1_content2_missing_content1-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 791 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 792 |
What do you want to do? u |
| 793 |
file 'content1_content2_missing_content2-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 794 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 795 |
What do you want to do? u |
| 796 |
merging content1_content2_missing_content4-tracked |
| 797 |
warning: conflicts while merging content1_content2_missing_content4-tracked! (edit, then use 'hg resolve --mark') |
| 798 |
file 'content1_content2_missing_content4-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 799 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 800 |
What do you want to do? u |
| 801 |
file 'content1_content2_missing_missing-tracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 802 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 803 |
What do you want to do? u |
| 804 |
file 'content1_content2_missing_missing-untracked' was deleted in local [working copy] but was modified in other [merge rev]. |
| 805 |
You can use (c)hanged version, leave (d)eleted, or leave (u)nresolved. |
| 806 |
What do you want to do? u |
| 807 |
file 'content1_missing_content1_content4-tracked' was deleted in other [merge rev] but was modified in local [working copy]. |
| 808 |
You can use (c)hanged version, (d)elete, or leave (u)nresolved. |
| 809 |
What do you want to do? u |
| 810 |
file 'content1_missing_content3_content3-tracked' was deleted in other [merge rev] but was modified in local [working copy]. |
| 811 |
You can use (c)hanged version, (d)elete, or leave (u)nresolved. |
| 812 |
What do you want to do? u |
| 813 |
file 'content1_missing_content3_content4-tracked' was deleted in other [merge rev] but was modified in local [working copy]. |
| 814 |
You can use (c)hanged version, (d)elete, or leave (u)nresolved. |
| 815 |
What do you want to do? u |
| 816 |
file 'content1_missing_missing_content4-tracked' was deleted in other [merge rev] but was modified in local [working copy]. |
| 817 |
You can use (c)hanged version, (d)elete, or leave (u)nresolved. |
| 818 |
What do you want to do? u |
| 819 |
merging missing_content2_content2_content4-tracked |
| 820 |
warning: conflicts while merging missing_content2_content2_content4-tracked! (edit, then use 'hg resolve --mark') |
| 821 |
merging missing_content2_content3_content3-tracked |
| 822 |
warning: conflicts while merging missing_content2_content3_content3-tracked! (edit, then use 'hg resolve --mark') |
| 823 |
merging missing_content2_content3_content4-tracked |
| 824 |
warning: conflicts while merging missing_content2_content3_content4-tracked! (edit, then use 'hg resolve --mark') |
| 825 |
merging missing_content2_missing_content4-tracked |
| 826 |
warning: conflicts while merging missing_content2_missing_content4-tracked! (edit, then use 'hg resolve --mark') |
| 827 |
merging missing_content2_missing_content4-untracked |
| 828 |
warning: conflicts while merging missing_content2_missing_content4-untracked! (edit, then use 'hg resolve --mark') |
| 829 |
[1] |
| 830 |
$ checkstatus > $TESTTMP/status2 2>&1 |
| 831 |
$ cmp $TESTTMP/status1 $TESTTMP/status2 || diff -U8 $TESTTMP/status1 $TESTTMP/status2 |
| 832 |
|
| 833 |
Set up working directory again |
| 834 |
|
| 835 |
$ hg -q update --clean 2 |
| 836 |
$ hg --config extensions.purge= purge |
| 837 |
$ "$PYTHON" $TESTDIR/generate-working-copy-states.py state 3 wc |
| 838 |
$ hg addremove -q --similarity 0 |
| 839 |
$ hg forget *_*_*_*-untracked |
| 840 |
$ rm *_*_*_missing-* |
| 841 |
|
| 842 |
Merge with checkunknown = warn, see that behavior is the same as before |
| 843 |
$ hg merge -f --tool internal:merge3 'desc("remote")' --config merge.checkunknown=warn > $TESTTMP/merge-output-2 2>&1 |
| 844 |
[1] |
| 845 |
$ cmp $TESTTMP/merge-output-1 $TESTTMP/merge-output-2 || diff -U8 $TESTTMP/merge-output-1 $TESTTMP/merge-output-2 |