Show More
@@ -80,3 +80,60 b' merge them (from the chmod side)' | |||
|
80 | 80 | |
|
81 | 81 | $ cd .. |
|
82 | 82 | |
|
83 | Testing merging mode change with rename | |
|
84 | ======================================= | |
|
85 | ||
|
86 | $ hg clone base-repo rename-merge-repo | |
|
87 | updating to branch default | |
|
88 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
89 | $ cd rename-merge-repo | |
|
90 | ||
|
91 | make "a" executable on one side | |
|
92 | ||
|
93 | $ chmod +x a | |
|
94 | $ hg status | |
|
95 | M a | |
|
96 | $ hg ci -m "make a executable" | |
|
97 | $ [ -x a ] || echo "executable bit not recorded" | |
|
98 | $ hg up ".^" | |
|
99 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
100 | ||
|
101 | make "a" renamed on the other side | |
|
102 | ||
|
103 | $ hg mv a z | |
|
104 | $ hg st --copies | |
|
105 | A z | |
|
106 | a | |
|
107 | R a | |
|
108 | $ hg ci -m "rename a to z" | |
|
109 | created new head | |
|
110 | ||
|
111 | merge them (from the rename side) | |
|
112 | ||
|
113 | $ hg merge 'desc("make a executable")' | |
|
114 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved (false !) | |
|
115 | 0 files updated, 0 files merged, 0 files removed, 0 files unresolved (true !) | |
|
116 | (branch merge, don't forget to commit) | |
|
117 | $ hg st --copies | |
|
118 | M z (false !) | |
|
119 | a (false !) | |
|
120 | $ [ -x z ] || echo "executable bit lost" | |
|
121 | executable bit lost (true !) | |
|
122 | ||
|
123 | merge them (from the chmod side) | |
|
124 | ||
|
125 | $ hg up -C 'desc("make a executable")' | |
|
126 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
127 | $ hg merge 'desc("rename a to z")' | |
|
128 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved (false !) | |
|
129 | 1 files updated, 0 files merged, 1 files removed, 0 files unresolved (true !) | |
|
130 | (branch merge, don't forget to commit) | |
|
131 | $ hg st --copies | |
|
132 | M z | |
|
133 | a (false !) | |
|
134 | R a | |
|
135 | $ [ -x z ] || echo "executable bit lost" | |
|
136 | executable bit lost (true !) | |
|
137 | ||
|
138 | ||
|
139 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now