Debian Codegraph @

tests/test-issue1175.t

raw
1 https://bz.mercurial-scm.org/1175
2
3 $ hg init repo
4 $ cd repo
5 $ touch a
6 $ hg ci -Am0
7 adding a
8
9 $ hg mv a a1
10 $ hg ci -m1
11
12 $ hg co 0
13 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
14
15 $ hg mv a a2
16 $ hg up
17 note: possible conflict - a was renamed multiple times to:
18 a1
19 a2
20 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
21
22 $ hg ci -m2
23
24 $ touch a
25 $ hg ci -Am3
26 adding a
27
28 $ hg mv a b
29 $ hg ci -Am4 a
30
31 $ hg ci --debug --traceback -Am5 b
32 committing files:
33 b
34 warning: can't find ancestor for 'b' copied from 'a'!
35 committing manifest
36 committing changelog
37 updating the branch cache
38 committed changeset 5:83a687e8a97c80992ba385bbfd766be181bfb1d1
39
40 $ hg verify -q
41
42 $ hg export --git tip
43 # HG changeset patch
44 # User test
45 # Date 0 0
46 # Thu Jan 01 00:00:00 1970 +0000
47 # Node ID 83a687e8a97c80992ba385bbfd766be181bfb1d1
48 # Parent 1d1625283f71954f21d14c3d44d0ad3c019c597f
49 5
50
51 diff --git a/b b/b
52 new file mode 100644
53
54 https://bz.mercurial-scm.org/show_bug.cgi?id=4476
55
56 $ hg init foo
57 $ cd foo
58 $ touch a && hg ci -Aqm a
59 $ hg mv a b
60 $ echo b1 >> b
61 $ hg ci -Aqm b1
62 $ hg up 0
63 1 files updated, 0 files merged, 1 files removed, 0 files unresolved
64 $ hg mv a b
65 $ echo b2 >> b
66 $ hg ci -Aqm b2
67 $ hg graft 1
68 grafting 1:5974126fad84 "b1"
69 merging b
70 warning: conflicts while merging b! (edit, then use 'hg resolve --mark')
71 abort: unresolved conflicts, can't continue
72 (use 'hg resolve' and 'hg graft --continue')
73 [1]
74 $ echo a > b
75 $ echo b3 >> b
76 $ hg resolve --mark b
77 (no more unresolved files)
78 continue: hg graft --continue
79 $ hg graft --continue
80 grafting 1:5974126fad84 "b1"
81 $ hg log -f b -T 'changeset: {rev}:{node|short}\nsummary: {desc}\n\n'
82 changeset: 3:376d30ccffc0
83 summary: b1
84
85 changeset: 2:416baaa2e5e4
86 summary: b2
87
88 changeset: 0:3903775176ed
89 summary: a
90
91
92