Show More
@@ -5670,10 +5670,10 b' def resolve(ui, repo, *pats, **opts):' | |||||
5670 | ui.setconfig('ui', 'forcemerge', '', 'resolve') |
|
5670 | ui.setconfig('ui', 'forcemerge', '', 'resolve') | |
5671 | ms.commit() |
|
5671 | ms.commit() | |
5672 |
|
5672 | |||
5673 | # replace filemerge's .orig file with our resolve file |
|
5673 | # replace filemerge's .orig file with our resolve file, but only | |
5674 | # for files in tocomplete, ms.resolve will not overwrite |
|
5674 | # for merges that are complete | |
5675 | # .orig -- only preresolve does |
|
5675 | if complete: | |
5676 | util.rename(a + ".resolve", a + ".orig") |
|
5676 | util.rename(a + ".resolve", a + ".orig") | |
5677 |
|
5677 | |||
5678 | for f in tocomplete: |
|
5678 | for f in tocomplete: | |
5679 | try: |
|
5679 | try: | |
@@ -5687,6 +5687,10 b' def resolve(ui, repo, *pats, **opts):' | |||||
5687 | ui.setconfig('ui', 'forcemerge', '', 'resolve') |
|
5687 | ui.setconfig('ui', 'forcemerge', '', 'resolve') | |
5688 | ms.commit() |
|
5688 | ms.commit() | |
5689 |
|
5689 | |||
|
5690 | # replace filemerge's .orig file with our resolve file | |||
|
5691 | a = repo.wjoin(f) | |||
|
5692 | util.rename(a + ".resolve", a + ".orig") | |||
|
5693 | ||||
5690 | ms.commit() |
|
5694 | ms.commit() | |
5691 |
|
5695 | |||
5692 | if not didwork and pats: |
|
5696 | if not didwork and pats: |
@@ -207,6 +207,30 b' resolve <file> should re-merge file' | |||||
207 | [1] |
|
207 | [1] | |
208 | $ grep '<<<' file1 > /dev/null |
|
208 | $ grep '<<<' file1 > /dev/null | |
209 |
|
209 | |||
|
210 | test .orig behavior with resolve | |||
|
211 | ||||
|
212 | $ echo resolve > file | |||
|
213 | $ hg resolve -q file1 --tool 'f --dump $TESTTMP/repo/file1.orig' | |||
|
214 | */file1~base*: (glob) | |||
|
215 | >>> | |||
|
216 | foo | |||
|
217 | <<< | |||
|
218 | */file1~other*: (glob) | |||
|
219 | >>> | |||
|
220 | foo | |||
|
221 | bar | |||
|
222 | <<< | |||
|
223 | $TESTTMP/repo/file1: (glob) | |||
|
224 | >>> | |||
|
225 | foo | |||
|
226 | baz | |||
|
227 | <<< | |||
|
228 | $TESTTMP/repo/file1.orig: (glob) | |||
|
229 | >>> | |||
|
230 | foo | |||
|
231 | baz | |||
|
232 | <<< | |||
|
233 | ||||
210 |
resolve <file> should do nothing if ' |
|
234 | resolve <file> should do nothing if 'file' was marked resolved | |
211 | $ echo resolved > file1 |
|
235 | $ echo resolved > file1 | |
212 | $ hg resolve -m file1 |
|
236 | $ hg resolve -m file1 |
General Comments 0
You need to be logged in to leave comments.
Login now