Show More
@@ -1558,9 +1558,10 b' class workingctx(committablectx):' | |||||
1558 | parents = self._repo.dirstate.parents() |
|
1558 | parents = self._repo.dirstate.parents() | |
1559 | p1manifest = self._repo[parents[0]].manifest() |
|
1559 | p1manifest = self._repo[parents[0]].manifest() | |
1560 | p2manifest = self._repo[parents[1]].manifest() |
|
1560 | p2manifest = self._repo[parents[1]].manifest() | |
|
1561 | changedset = set(self.added()) | set(self.modified()) | |||
1561 | narrowmatch = self._repo.narrowmatch() |
|
1562 | narrowmatch = self._repo.narrowmatch() | |
1562 | for dst, src in self._repo.dirstate.copies().items(): |
|
1563 | for dst, src in self._repo.dirstate.copies().items(): | |
1563 | if not narrowmatch(dst): |
|
1564 | if dst not in changedset or not narrowmatch(dst): | |
1564 | continue |
|
1565 | continue | |
1565 | if src in p1manifest: |
|
1566 | if src in p1manifest: | |
1566 | p1copies[dst] = src |
|
1567 | p1copies[dst] = src |
@@ -197,13 +197,37 b' Test splitting a commit' | |||||
197 | $ echo a2 > a |
|
197 | $ echo a2 > a | |
198 | $ hg mv b c |
|
198 | $ hg mv b c | |
199 | $ hg ci -m 'modify a, move b to c' |
|
199 | $ hg ci -m 'modify a, move b to c' | |
200 |
$ |
|
200 | $ hg --config ui.interactive=yes split <<EOF | |
201 | > y |
|
201 | > y | |
202 | > y |
|
202 | > y | |
203 | > n |
|
203 | > n | |
204 | > y |
|
204 | > y | |
205 | > EOF |
|
205 | > EOF | |
206 | mercurial.error.ProgrammingError: some copy targets missing from file list |
|
206 | diff --git a/a b/a | |
|
207 | 1 hunks, 1 lines changed | |||
|
208 | examine changes to 'a'? | |||
|
209 | (enter ? for help) [Ynesfdaq?] y | |||
|
210 | ||||
|
211 | @@ -1,1 +1,1 @@ | |||
|
212 | -a | |||
|
213 | +a2 | |||
|
214 | record this change to 'a'? | |||
|
215 | (enter ? for help) [Ynesfdaq?] y | |||
|
216 | ||||
|
217 | diff --git a/b b/c | |||
|
218 | rename from b | |||
|
219 | rename to c | |||
|
220 | examine changes to 'b' and 'c'? | |||
|
221 | (enter ? for help) [Ynesfdaq?] n | |||
|
222 | ||||
|
223 | created new head | |||
|
224 | diff --git a/b b/c | |||
|
225 | rename from b | |||
|
226 | rename to c | |||
|
227 | examine changes to 'b' and 'c'? | |||
|
228 | (enter ? for help) [Ynesfdaq?] y | |||
|
229 | ||||
|
230 | saved backup bundle to $TESTTMP/split/.hg/strip-backup/9a396d463e04-2d9e6864-split.hg | |||
207 | $ cd .. |
|
231 | $ cd .. | |
208 |
|
232 | |||
209 | Test committing half a rename |
|
233 | Test committing half a rename | |
@@ -213,6 +237,5 b' Test committing half a rename' | |||||
213 | $ echo a > a |
|
237 | $ echo a > a | |
214 | $ hg ci -Aqm 'add a' |
|
238 | $ hg ci -Aqm 'add a' | |
215 | $ hg mv a b |
|
239 | $ hg mv a b | |
216 |
$ hg ci -m 'remove a' a |
|
240 | $ hg ci -m 'remove a' a | |
217 | mercurial.error.ProgrammingError: some copy targets missing from file list |
|
|||
218 | $ cd .. |
|
241 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now