Show More
@@ -1773,8 +1773,7 b' class workingfilectx(committablefilectx)' | |||||
1773 |
|
1773 | |||
1774 | def markcopied(self, src): |
|
1774 | def markcopied(self, src): | |
1775 | """marks this file a copy of `src`""" |
|
1775 | """marks this file a copy of `src`""" | |
1776 |
|
|
1776 | self._repo.dirstate.copy(src, self._path) | |
1777 | self._repo.dirstate.copy(src, self._path) |
|
|||
1778 |
|
1777 | |||
1779 | def clearunknown(self): |
|
1778 | def clearunknown(self): | |
1780 | """Removes conflicting items in the working directory so that |
|
1779 | """Removes conflicting items in the working directory so that |
@@ -798,4 +798,5 b' def duplicatecopies(repo, wctx, rev, fro' | |||||
798 | for dst, src in pathcopies(repo[fromrev], repo[rev]).iteritems(): |
|
798 | for dst, src in pathcopies(repo[fromrev], repo[rev]).iteritems(): | |
799 | if dst in exclude: |
|
799 | if dst in exclude: | |
800 | continue |
|
800 | continue | |
801 | wctx[dst].markcopied(src) |
|
801 | if dst in wctx: | |
|
802 | wctx[dst].markcopied(src) |
@@ -795,12 +795,10 b' Rebase across a copy with --collapse' | |||||
795 | $ hg co -q 0 |
|
795 | $ hg co -q 0 | |
796 | $ echo a2 > a |
|
796 | $ echo a2 > a | |
797 | $ hg ci -qm 'modify a' |
|
797 | $ hg ci -qm 'modify a' | |
798 | BROKEN: obviously... |
|
|||
799 | $ hg rebase -r . -d 1 --collapse |
|
798 | $ hg rebase -r . -d 1 --collapse | |
800 | rebasing 2:41c4ea50d4cf "modify a" (tip) |
|
799 | rebasing 2:41c4ea50d4cf "modify a" (tip) | |
801 | merging b and a to b |
|
800 | merging b and a to b | |
802 | abort: a@b977edf6f839: not found in manifest! |
|
801 | saved backup bundle to $TESTTMP/rebase-rename-collapse/.hg/strip-backup/41c4ea50d4cf-b90b7994-rebase.hg | |
803 | [255] |
|
|||
804 | $ cd .. |
|
802 | $ cd .. | |
805 |
|
803 | |||
806 | Test rebasing when the file we are merging in destination is empty |
|
804 | Test rebasing when the file we are merging in destination is empty |
General Comments 0
You need to be logged in to leave comments.
Login now