test-issue1175.t
96 lines
| 2.0 KiB
| text/troff
|
Tads3Lexer
/ tests / test-issue1175.t
Matt Mackall
|
r26420 | https://bz.mercurial-scm.org/1175 | ||
Adrian Buehlmann
|
r12195 | |||
$ hg init | ||||
$ touch a | ||||
$ hg ci -Am0 | ||||
adding a | ||||
$ hg mv a a1 | ||||
$ hg ci -m1 | ||||
$ hg co 0 | ||||
1 files updated, 0 files merged, 1 files removed, 0 files unresolved | ||||
$ hg mv a a2 | ||||
$ hg up | ||||
Dan Villiom Podlaski Christiansen
|
r12757 | note: possible conflict - a was renamed multiple times to: | ||
Martin von Zweigbergk
|
r42279 | a1 | ||
Adrian Buehlmann
|
r12195 | a2 | ||
1 files updated, 0 files merged, 0 files removed, 0 files unresolved | ||||
$ hg ci -m2 | ||||
$ touch a | ||||
$ hg ci -Am3 | ||||
adding a | ||||
$ hg mv a b | ||||
$ hg ci -Am4 a | ||||
$ hg ci --debug --traceback -Am5 b | ||||
Mads Kiilerich
|
r23749 | committing files: | ||
Adrian Buehlmann
|
r12195 | b | ||
Ryan McElroy
|
r23929 | warning: can't find ancestor for 'b' copied from 'a'! | ||
Mads Kiilerich
|
r23749 | committing manifest | ||
committing changelog | ||||
Pierre-Yves David
|
r32267 | updating the branch cache | ||
Ryan McElroy
|
r23929 | committed changeset 5:83a687e8a97c80992ba385bbfd766be181bfb1d1 | ||
Adrian Buehlmann
|
r12195 | |||
$ hg verify | ||||
checking changesets | ||||
checking manifests | ||||
crosschecking files in changesets and manifests | ||||
checking files | ||||
Meirambek Omyrzak
|
r39525 | checked 6 changesets with 4 changes to 4 files | ||
Adrian Buehlmann
|
r12195 | |||
$ hg export --git tip | ||||
# HG changeset patch | ||||
# User test | ||||
# Date 0 0 | ||||
Mads Kiilerich
|
r18648 | # Thu Jan 01 00:00:00 1970 +0000 | ||
Ryan McElroy
|
r23929 | # Node ID 83a687e8a97c80992ba385bbfd766be181bfb1d1 | ||
Matt Mackall
|
r18739 | # Parent 1d1625283f71954f21d14c3d44d0ad3c019c597f | ||
Adrian Buehlmann
|
r12195 | 5 | ||
diff --git a/b b/b | ||||
new file mode 100644 | ||||
r29680 | https://bz.mercurial-scm.org/show_bug.cgi?id=4476 | |||
Ryan McElroy
|
r23929 | |||
$ hg init foo | ||||
$ cd foo | ||||
$ touch a && hg ci -Aqm a | ||||
$ hg mv a b | ||||
$ echo b1 >> b | ||||
$ hg ci -Aqm b1 | ||||
$ hg up 0 | ||||
1 files updated, 0 files merged, 1 files removed, 0 files unresolved | ||||
$ hg mv a b | ||||
$ echo b2 >> b | ||||
$ hg ci -Aqm b2 | ||||
$ hg graft 1 | ||||
grafting 1:5974126fad84 "b1" | ||||
merging b | ||||
Siddharth Agarwal
|
r26614 | warning: conflicts while merging b! (edit, then use 'hg resolve --mark') | ||
Ryan McElroy
|
r23929 | abort: unresolved conflicts, can't continue | ||
timeless
|
r28963 | (use 'hg resolve' and 'hg graft --continue') | ||
Ryan McElroy
|
r23929 | [255] | ||
$ echo a > b | ||||
$ echo b3 >> b | ||||
$ hg resolve --mark b | ||||
(no more unresolved files) | ||||
timeless
|
r27625 | continue: hg graft --continue | ||
Ryan McElroy
|
r23929 | $ hg graft --continue | ||
grafting 1:5974126fad84 "b1" | ||||
$ hg log -f b -T 'changeset: {rev}:{node|short}\nsummary: {desc}\n\n' | ||||
changeset: 3:376d30ccffc0 | ||||
summary: b1 | ||||
changeset: 2:416baaa2e5e4 | ||||
summary: b2 | ||||
changeset: 0:3903775176ed | ||||
summary: a | ||||