Show More
@@ -1558,9 +1558,10 b' class workingctx(committablectx):' | |||
|
1558 | 1558 | parents = self._repo.dirstate.parents() |
|
1559 | 1559 | p1manifest = self._repo[parents[0]].manifest() |
|
1560 | 1560 | p2manifest = self._repo[parents[1]].manifest() |
|
1561 | changedset = set(self.added()) | set(self.modified()) | |
|
1561 | 1562 | narrowmatch = self._repo.narrowmatch() |
|
1562 | 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 | 1565 | continue |
|
1565 | 1566 | if src in p1manifest: |
|
1566 | 1567 | p1copies[dst] = src |
@@ -197,13 +197,37 b' Test splitting a commit' | |||
|
197 | 197 | $ echo a2 > a |
|
198 | 198 | $ hg mv b c |
|
199 | 199 | $ hg ci -m 'modify a, move b to c' |
|
200 |
$ |
|
|
200 | $ hg --config ui.interactive=yes split <<EOF | |
|
201 | 201 | > y |
|
202 | 202 | > y |
|
203 | 203 | > n |
|
204 | 204 | > y |
|
205 | 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 | 231 | $ cd .. |
|
208 | 232 | |
|
209 | 233 | Test committing half a rename |
@@ -213,6 +237,5 b' Test committing half a rename' | |||
|
213 | 237 | $ echo a > a |
|
214 | 238 | $ hg ci -Aqm 'add a' |
|
215 | 239 | $ hg mv a b |
|
216 |
$ hg ci -m 'remove a' a |
|
|
217 | mercurial.error.ProgrammingError: some copy targets missing from file list | |
|
240 | $ hg ci -m 'remove a' a | |
|
218 | 241 | $ cd .. |
General Comments 0
You need to be logged in to leave comments.
Login now