##// END OF EJS Templates
errors: raise StateError when there are unresolves merge conflicts...
Martin von Zweigbergk -
r46528:fa87536d default
parent child Browse files
Show More
@@ -14,6 +14,6 b' from . import error'
14
14
15 def checkunresolved(ms):
15 def checkunresolved(ms):
16 if list(ms.unresolved()):
16 if list(ms.unresolved()):
17 raise error.Abort(
17 raise error.StateError(
18 _(b"unresolved merge conflicts (see 'hg help resolve')")
18 _(b"unresolved merge conflicts (see 'hg help resolve')")
19 )
19 )
@@ -423,7 +423,7 b' Refuse to amend if there is a merge conf'
423
423
424 $ hg ci --amend
424 $ hg ci --amend
425 abort: unresolved merge conflicts (see 'hg help resolve')
425 abort: unresolved merge conflicts (see 'hg help resolve')
426 [255]
426 [20]
427
427
428 $ hg up -qC .
428 $ hg up -qC .
429
429
@@ -101,7 +101,7 b' Correct the conflict without marking the'
101 $ echo "ABCD" > A
101 $ echo "ABCD" > A
102 $ hg commit -m "Merged"
102 $ hg commit -m "Merged"
103 abort: unresolved merge conflicts (see 'hg help resolve')
103 abort: unresolved merge conflicts (see 'hg help resolve')
104 [255]
104 [20]
105
105
106 Mark the conflict as resolved and commit
106 Mark the conflict as resolved and commit
107
107
@@ -123,7 +123,7 b' Test that if a file is removed but not m'
123 $ hg rm --force A
123 $ hg rm --force A
124 $ hg commit -m merged
124 $ hg commit -m merged
125 abort: unresolved merge conflicts (see 'hg help resolve')
125 abort: unresolved merge conflicts (see 'hg help resolve')
126 [255]
126 [20]
127
127
128 $ hg resolve -ma
128 $ hg resolve -ma
129 (no more unresolved files)
129 (no more unresolved files)
@@ -324,7 +324,7 b' Continue without resolve should fail:'
324 $ hg graft -c
324 $ hg graft -c
325 grafting 4:9c233e8e184d "4"
325 grafting 4:9c233e8e184d "4"
326 abort: unresolved merge conflicts (see 'hg help resolve')
326 abort: unresolved merge conflicts (see 'hg help resolve')
327 [255]
327 [20]
328
328
329 Fix up:
329 Fix up:
330
330
@@ -89,7 +89,7 b' Try to continue without solving the conf'
89
89
90 $ hg rebase --continue
90 $ hg rebase --continue
91 abort: unresolved merge conflicts (see 'hg help resolve')
91 abort: unresolved merge conflicts (see 'hg help resolve')
92 [255]
92 [20]
93
93
94 Conclude rebase:
94 Conclude rebase:
95
95
@@ -348,7 +348,7 b' Try to make empty commit while there are'
348 $ rm a.orig
348 $ rm a.orig
349 $ hg ci -m empty
349 $ hg ci -m empty
350 abort: unresolved merge conflicts (see 'hg help resolve')
350 abort: unresolved merge conflicts (see 'hg help resolve')
351 [255]
351 [20]
352 $ hg resolve -m a
352 $ hg resolve -m a
353 (no more unresolved files)
353 (no more unresolved files)
354 $ hg resolve -l
354 $ hg resolve -l
General Comments 0
You need to be logged in to leave comments. Login now