Show More
@@ -233,7 +233,7 b' def _checkunknownfiles(repo, wctx, mctx,' | |||||
233 | else: |
|
233 | else: | |
234 | warn(_(b"%s: untracked file differs\n") % f) |
|
234 | warn(_(b"%s: untracked file differs\n") % f) | |
235 | if abortconflicts: |
|
235 | if abortconflicts: | |
236 |
raise error. |
|
236 | raise error.StateError( | |
237 | _( |
|
237 | _( | |
238 | b"untracked files in working directory " |
|
238 | b"untracked files in working directory " | |
239 | b"differ from files in requested revision" |
|
239 | b"differ from files in requested revision" | |
@@ -341,7 +341,7 b' def _checkcollision(repo, wmf, mresult):' | |||||
341 | for f in pmmf: |
|
341 | for f in pmmf: | |
342 | fold = util.normcase(f) |
|
342 | fold = util.normcase(f) | |
343 | if fold in foldmap: |
|
343 | if fold in foldmap: | |
344 |
raise error. |
|
344 | raise error.StateError( | |
345 | _(b"case-folding collision between %s and %s") |
|
345 | _(b"case-folding collision between %s and %s") | |
346 | % (f, foldmap[fold]) |
|
346 | % (f, foldmap[fold]) | |
347 | ) |
|
347 | ) | |
@@ -352,7 +352,7 b' def _checkcollision(repo, wmf, mresult):' | |||||
352 | for fold, f in sorted(foldmap.items()): |
|
352 | for fold, f in sorted(foldmap.items()): | |
353 | if fold.startswith(foldprefix) and not f.startswith(unfoldprefix): |
|
353 | if fold.startswith(foldprefix) and not f.startswith(unfoldprefix): | |
354 | # the folded prefix matches but actual casing is different |
|
354 | # the folded prefix matches but actual casing is different | |
355 |
raise error. |
|
355 | raise error.StateError( | |
356 | _(b"case-folding collision between %s and directory of %s") |
|
356 | _(b"case-folding collision between %s and directory of %s") | |
357 | % (lastfull, f) |
|
357 | % (lastfull, f) | |
358 | ) |
|
358 | ) | |
@@ -504,7 +504,9 b' def checkpathconflicts(repo, wctx, mctx,' | |||||
504 | if invalidconflicts: |
|
504 | if invalidconflicts: | |
505 | for p in invalidconflicts: |
|
505 | for p in invalidconflicts: | |
506 | repo.ui.warn(_(b"%s: is both a file and a directory\n") % p) |
|
506 | repo.ui.warn(_(b"%s: is both a file and a directory\n") % p) | |
507 | raise error.Abort(_(b"destination manifest contains path conflicts")) |
|
507 | raise error.StateError( | |
|
508 | _(b"destination manifest contains path conflicts") | |||
|
509 | ) | |||
508 |
|
510 | |||
509 |
|
511 | |||
510 | def _filternarrowactions(narrowmatch, branchmerge, mresult): |
|
512 | def _filternarrowactions(narrowmatch, branchmerge, mresult): | |
@@ -1918,10 +1920,10 b' def _update(' | |||||
1918 | ### check phase |
|
1920 | ### check phase | |
1919 | if not overwrite: |
|
1921 | if not overwrite: | |
1920 | if len(pl) > 1: |
|
1922 | if len(pl) > 1: | |
1921 |
raise error. |
|
1923 | raise error.StateError(_(b"outstanding uncommitted merge")) | |
1922 | ms = wc.mergestate() |
|
1924 | ms = wc.mergestate() | |
1923 | if ms.unresolvedcount(): |
|
1925 | if ms.unresolvedcount(): | |
1924 |
raise error. |
|
1926 | raise error.StateError( | |
1925 | _(b"outstanding merge conflicts"), |
|
1927 | _(b"outstanding merge conflicts"), | |
1926 | hint=_(b"use 'hg resolve' to resolve"), |
|
1928 | hint=_(b"use 'hg resolve' to resolve"), | |
1927 | ) |
|
1929 | ) | |
@@ -2007,7 +2009,7 b' def _update(' | |||||
2007 | if mresult.hasconflicts(): |
|
2009 | if mresult.hasconflicts(): | |
2008 | msg = _(b"conflicting changes") |
|
2010 | msg = _(b"conflicting changes") | |
2009 | hint = _(b"commit or update --clean to discard changes") |
|
2011 | hint = _(b"commit or update --clean to discard changes") | |
2010 |
raise error. |
|
2012 | raise error.StateError(msg, hint=hint) | |
2011 |
|
2013 | |||
2012 | # Prompt and create actions. Most of this is in the resolve phase |
|
2014 | # Prompt and create actions. Most of this is in the resolve phase | |
2013 | # already, but we can't handle .hgsubstate in filemerge or |
|
2015 | # already, but we can't handle .hgsubstate in filemerge or |
@@ -323,7 +323,7 b' on clone empty subrepo into .hg, then pu' | |||||
323 | new changesets 7a2f0e59146f |
|
323 | new changesets 7a2f0e59146f | |
324 | .hgsubstate: untracked file differs |
|
324 | .hgsubstate: untracked file differs | |
325 | abort: untracked files in working directory differ from files in requested revision |
|
325 | abort: untracked files in working directory differ from files in requested revision | |
326 |
[2 |
|
326 | [20] | |
327 | $ cat main5/.hg/hgrc | grep pwned |
|
327 | $ cat main5/.hg/hgrc | grep pwned | |
328 | [1] |
|
328 | [1] | |
329 |
|
329 | |||
@@ -623,7 +623,7 b' then pull (and update):' | |||||
623 | new changesets * (glob) |
|
623 | new changesets * (glob) | |
624 | .hgsubstate: untracked file differs |
|
624 | .hgsubstate: untracked file differs | |
625 | abort: untracked files in working directory differ from files in requested revision |
|
625 | abort: untracked files in working directory differ from files in requested revision | |
626 |
[2 |
|
626 | [20] | |
627 | $ ls "$FAKEHOME" |
|
627 | $ ls "$FAKEHOME" | |
628 | a |
|
628 | a | |
629 | $ test -d "$FAKEHOME/.hg" |
|
629 | $ test -d "$FAKEHOME/.hg" | |
@@ -652,7 +652,7 b' then pull (and update):' | |||||
652 | new changesets * (glob) |
|
652 | new changesets * (glob) | |
653 | .hgsubstate: untracked file differs |
|
653 | .hgsubstate: untracked file differs | |
654 | abort: untracked files in working directory differ from files in requested revision |
|
654 | abort: untracked files in working directory differ from files in requested revision | |
655 |
[2 |
|
655 | [20] | |
656 | $ ls -A "$FAKEHOME" |
|
656 | $ ls -A "$FAKEHOME" | |
657 | .hg |
|
657 | .hg | |
658 | a |
|
658 | a |
@@ -1751,7 +1751,7 b' Test status after merging with a branch ' | |||||
1751 | $ hg rm sub2/large6 |
|
1751 | $ hg rm sub2/large6 | |
1752 | $ hg up -r. |
|
1752 | $ hg up -r. | |
1753 | abort: outstanding uncommitted merge |
|
1753 | abort: outstanding uncommitted merge | |
1754 |
[2 |
|
1754 | [20] | |
1755 |
|
1755 | |||
1756 | - revert should be able to revert files introduced in a pending merge |
|
1756 | - revert should be able to revert files introduced in a pending merge | |
1757 | $ hg revert --all -r . |
|
1757 | $ hg revert --all -r . |
@@ -95,7 +95,7 b' Merge should not overwrite local file th' | |||||
95 | $ hg merge |
|
95 | $ hg merge | |
96 | bar: untracked file differs |
|
96 | bar: untracked file differs | |
97 | abort: untracked files in working directory differ from files in requested revision |
|
97 | abort: untracked files in working directory differ from files in requested revision | |
98 |
[2 |
|
98 | [20] | |
99 | $ cat bar |
|
99 | $ cat bar | |
100 | memories of buried pirate treasure |
|
100 | memories of buried pirate treasure | |
101 |
|
101 |
@@ -113,7 +113,7 b' merge should fail' | |||||
113 | $ hg merge 1 |
|
113 | $ hg merge 1 | |
114 | b: untracked file differs |
|
114 | b: untracked file differs | |
115 | abort: untracked files in working directory differ from files in requested revision |
|
115 | abort: untracked files in working directory differ from files in requested revision | |
116 |
[2 |
|
116 | [20] | |
117 |
|
117 | |||
118 | #if symlink |
|
118 | #if symlink | |
119 | symlinks to directories should be treated as regular files (issue5027) |
|
119 | symlinks to directories should be treated as regular files (issue5027) | |
@@ -122,7 +122,7 b' symlinks to directories should be treate' | |||||
122 | $ hg merge 1 |
|
122 | $ hg merge 1 | |
123 | b: untracked file differs |
|
123 | b: untracked file differs | |
124 | abort: untracked files in working directory differ from files in requested revision |
|
124 | abort: untracked files in working directory differ from files in requested revision | |
125 |
[2 |
|
125 | [20] | |
126 | symlinks shouldn't be followed |
|
126 | symlinks shouldn't be followed | |
127 | $ rm b |
|
127 | $ rm b | |
128 | $ echo This is file b1 > .hg/b |
|
128 | $ echo This is file b1 > .hg/b | |
@@ -130,7 +130,7 b" symlinks shouldn't be followed" | |||||
130 | $ hg merge 1 |
|
130 | $ hg merge 1 | |
131 | b: untracked file differs |
|
131 | b: untracked file differs | |
132 | abort: untracked files in working directory differ from files in requested revision |
|
132 | abort: untracked files in working directory differ from files in requested revision | |
133 |
[2 |
|
133 | [20] | |
134 |
|
134 | |||
135 | $ rm b |
|
135 | $ rm b | |
136 | $ echo This is file b2 > b |
|
136 | $ echo This is file b2 > b | |
@@ -144,7 +144,7 b' this merge should fail' | |||||
144 | $ hg merge 1 --config merge.checkunknown=abort |
|
144 | $ hg merge 1 --config merge.checkunknown=abort | |
145 | b: untracked file differs |
|
145 | b: untracked file differs | |
146 | abort: untracked files in working directory differ from files in requested revision |
|
146 | abort: untracked files in working directory differ from files in requested revision | |
147 |
[2 |
|
147 | [20] | |
148 |
|
148 | |||
149 | this merge should warn |
|
149 | this merge should warn | |
150 | $ hg merge 1 --config merge.checkunknown=warn |
|
150 | $ hg merge 1 --config merge.checkunknown=warn | |
@@ -188,7 +188,7 b" remote .hgignore shouldn't be used for d" | |||||
188 | $ hg merge 3 --config merge.checkignored=ignore --config merge.checkunknown=abort |
|
188 | $ hg merge 3 --config merge.checkignored=ignore --config merge.checkunknown=abort | |
189 | remoteignored: untracked file differs |
|
189 | remoteignored: untracked file differs | |
190 | abort: untracked files in working directory differ from files in requested revision |
|
190 | abort: untracked files in working directory differ from files in requested revision | |
191 |
[2 |
|
191 | [20] | |
192 | $ hg merge 3 --config merge.checkignored=abort --config merge.checkunknown=ignore |
|
192 | $ hg merge 3 --config merge.checkignored=abort --config merge.checkunknown=ignore | |
193 | merging .hgignore |
|
193 | merging .hgignore | |
194 | merging for .hgignore |
|
194 | merging for .hgignore | |
@@ -210,15 +210,15 b' also test other conflicting files to see' | |||||
210 | b: untracked file differs |
|
210 | b: untracked file differs | |
211 | localignored: untracked file differs |
|
211 | localignored: untracked file differs | |
212 | abort: untracked files in working directory differ from files in requested revision |
|
212 | abort: untracked files in working directory differ from files in requested revision | |
213 |
[2 |
|
213 | [20] | |
214 | $ hg merge 3 --config merge.checkignored=abort --config merge.checkunknown=ignore |
|
214 | $ hg merge 3 --config merge.checkignored=abort --config merge.checkunknown=ignore | |
215 | localignored: untracked file differs |
|
215 | localignored: untracked file differs | |
216 | abort: untracked files in working directory differ from files in requested revision |
|
216 | abort: untracked files in working directory differ from files in requested revision | |
217 |
[2 |
|
217 | [20] | |
218 | $ hg merge 3 --config merge.checkignored=warn --config merge.checkunknown=abort |
|
218 | $ hg merge 3 --config merge.checkignored=warn --config merge.checkunknown=abort | |
219 | b: untracked file differs |
|
219 | b: untracked file differs | |
220 | abort: untracked files in working directory differ from files in requested revision |
|
220 | abort: untracked files in working directory differ from files in requested revision | |
221 |
[2 |
|
221 | [20] | |
222 | $ hg merge 3 --config merge.checkignored=warn --config merge.checkunknown=warn |
|
222 | $ hg merge 3 --config merge.checkignored=warn --config merge.checkunknown=warn | |
223 | b: replacing untracked file |
|
223 | b: replacing untracked file | |
224 | localignored: replacing untracked file |
|
224 | localignored: replacing untracked file |
@@ -53,7 +53,7 b' Basic update - local directory conflicts' | |||||
53 | $ hg up file |
|
53 | $ hg up file | |
54 | a: untracked directory conflicts with file |
|
54 | a: untracked directory conflicts with file | |
55 | abort: untracked files in working directory differ from files in requested revision |
|
55 | abort: untracked files in working directory differ from files in requested revision | |
56 |
[2 |
|
56 | [20] | |
57 | $ hg up --clean file |
|
57 | $ hg up --clean file | |
58 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
58 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
59 | (activating bookmark file) |
|
59 | (activating bookmark file) |
@@ -49,7 +49,7 b' Update - local file conflicts with remot' | |||||
49 | $ hg up dir |
|
49 | $ hg up dir | |
50 | a/b: untracked file conflicts with directory |
|
50 | a/b: untracked file conflicts with directory | |
51 | abort: untracked files in working directory differ from files in requested revision |
|
51 | abort: untracked files in working directory differ from files in requested revision | |
52 |
[2 |
|
52 | [20] | |
53 | $ hg up dir --config merge.checkunknown=warn |
|
53 | $ hg up dir --config merge.checkunknown=warn | |
54 | a/b: replacing untracked file |
|
54 | a/b: replacing untracked file | |
55 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
55 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
@@ -70,7 +70,7 b' Update - local symlink conflicts with re' | |||||
70 | $ hg up dir |
|
70 | $ hg up dir | |
71 | a/b: untracked file conflicts with directory |
|
71 | a/b: untracked file conflicts with directory | |
72 | abort: untracked files in working directory differ from files in requested revision |
|
72 | abort: untracked files in working directory differ from files in requested revision | |
73 |
[2 |
|
73 | [20] | |
74 | $ hg up dir --config merge.checkunknown=warn |
|
74 | $ hg up dir --config merge.checkunknown=warn | |
75 | a/b: replacing untracked file |
|
75 | a/b: replacing untracked file | |
76 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
76 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
@@ -89,7 +89,7 b' Update - local directory conflicts with ' | |||||
89 | $ hg up file |
|
89 | $ hg up file | |
90 | a/b: untracked directory conflicts with file |
|
90 | a/b: untracked directory conflicts with file | |
91 | abort: untracked files in working directory differ from files in requested revision |
|
91 | abort: untracked files in working directory differ from files in requested revision | |
92 |
[2 |
|
92 | [20] | |
93 | $ hg up file --config merge.checkunknown=warn |
|
93 | $ hg up file --config merge.checkunknown=warn | |
94 | a/b: replacing untracked files in directory |
|
94 | a/b: replacing untracked files in directory | |
95 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
95 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
@@ -107,7 +107,7 b' Update - local directory conflicts with ' | |||||
107 | $ hg up link |
|
107 | $ hg up link | |
108 | a/b: untracked directory conflicts with file |
|
108 | a/b: untracked directory conflicts with file | |
109 | abort: untracked files in working directory differ from files in requested revision |
|
109 | abort: untracked files in working directory differ from files in requested revision | |
110 |
[2 |
|
110 | [20] | |
111 | $ hg up link --config merge.checkunknown=warn |
|
111 | $ hg up link --config merge.checkunknown=warn | |
112 | a/b: replacing untracked files in directory |
|
112 | a/b: replacing untracked files in directory | |
113 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
113 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
@@ -180,7 +180,7 b'' | |||||
180 | x: untracked file differs |
|
180 | x: untracked file differs | |
181 | 3 files fetched over 1 fetches - (3 misses, 0.00% hit ratio) over * (glob) |
|
181 | 3 files fetched over 1 fetches - (3 misses, 0.00% hit ratio) over * (glob) | |
182 | abort: untracked files in working directory differ from files in requested revision |
|
182 | abort: untracked files in working directory differ from files in requested revision | |
183 |
[2 |
|
183 | [20] | |
184 | $ hg revert --all |
|
184 | $ hg revert --all | |
185 |
|
185 | |||
186 | # Test batch fetching of lookup files during hg status |
|
186 | # Test batch fetching of lookup files during hg status |
@@ -110,7 +110,7 b' and untracked in local target directory.' | |||||
110 | $ hg merge 2 |
|
110 | $ hg merge 2 | |
111 | b/c: untracked file differs |
|
111 | b/c: untracked file differs | |
112 | abort: untracked files in working directory differ from files in requested revision |
|
112 | abort: untracked files in working directory differ from files in requested revision | |
113 |
[2 |
|
113 | [20] | |
114 | $ cat b/c |
|
114 | $ cat b/c | |
115 | target |
|
115 | target | |
116 | but it should succeed if the content matches |
|
116 | but it should succeed if the content matches |
@@ -153,15 +153,15 b' can not update or merge when there are u' | |||||
153 | $ hg up 0 |
|
153 | $ hg up 0 | |
154 | abort: outstanding merge conflicts |
|
154 | abort: outstanding merge conflicts | |
155 | (use 'hg resolve' to resolve) |
|
155 | (use 'hg resolve' to resolve) | |
156 |
[2 |
|
156 | [20] | |
157 | $ hg merge 2 |
|
157 | $ hg merge 2 | |
158 | abort: outstanding merge conflicts |
|
158 | abort: outstanding merge conflicts | |
159 | (use 'hg resolve' to resolve) |
|
159 | (use 'hg resolve' to resolve) | |
160 |
[2 |
|
160 | [20] | |
161 | $ hg merge --force 2 |
|
161 | $ hg merge --force 2 | |
162 | abort: outstanding merge conflicts |
|
162 | abort: outstanding merge conflicts | |
163 | (use 'hg resolve' to resolve) |
|
163 | (use 'hg resolve' to resolve) | |
164 |
[2 |
|
164 | [20] | |
165 |
|
165 | |||
166 | set up conflict-free merge |
|
166 | set up conflict-free merge | |
167 |
|
167 |
@@ -175,7 +175,7 b' test conflicting untracked files' | |||||
175 | $ hg up 1 |
|
175 | $ hg up 1 | |
176 | b: untracked file differs |
|
176 | b: untracked file differs | |
177 | abort: untracked files in working directory differ from files in requested revision |
|
177 | abort: untracked files in working directory differ from files in requested revision | |
178 |
[2 |
|
178 | [20] | |
179 | $ rm b |
|
179 | $ rm b | |
180 |
|
180 | |||
181 | test conflicting untracked ignored file |
|
181 | test conflicting untracked ignored file | |
@@ -195,7 +195,7 b' test conflicting untracked ignored file' | |||||
195 | $ hg up 'desc("add ignored file")' |
|
195 | $ hg up 'desc("add ignored file")' | |
196 | ignored: untracked file differs |
|
196 | ignored: untracked file differs | |
197 | abort: untracked files in working directory differ from files in requested revision |
|
197 | abort: untracked files in working directory differ from files in requested revision | |
198 |
[2 |
|
198 | [20] | |
199 |
|
199 | |||
200 | test a local add |
|
200 | test a local add | |
201 |
|
201 |
@@ -324,7 +324,7 b' File conflict is not allowed' | |||||
324 | $ hg up -q 4 |
|
324 | $ hg up -q 4 | |
325 | abort: conflicting changes |
|
325 | abort: conflicting changes | |
326 | (commit or update --clean to discard changes) |
|
326 | (commit or update --clean to discard changes) | |
327 |
[2 |
|
327 | [20] | |
328 | $ hg up -m 4 |
|
328 | $ hg up -m 4 | |
329 | merging a |
|
329 | merging a | |
330 | warning: conflicts while merging a! (edit, then use 'hg resolve --mark') |
|
330 | warning: conflicts while merging a! (edit, then use 'hg resolve --mark') |
General Comments 0
You need to be logged in to leave comments.
Login now