##// END OF EJS Templates
merge: give hint as to how to discover uncommitted changes...
Steve Borho -
r8545:3682a19b default
parent child Browse files
Show More
@@ -457,7 +457,8 b' def update(repo, node, branchmerge, forc'
457 raise util.Abort(_("nothing to merge (use 'hg update'"
457 raise util.Abort(_("nothing to merge (use 'hg update'"
458 " or check 'hg heads')"))
458 " or check 'hg heads')"))
459 if not force and (wc.files() or wc.deleted()):
459 if not force and (wc.files() or wc.deleted()):
460 raise util.Abort(_("outstanding uncommitted changes"))
460 raise util.Abort(_("outstanding uncommitted changes "
461 "(use 'hg status' to list changes)"))
461 elif not overwrite:
462 elif not overwrite:
462 if pa == p1 or pa == p2: # linear
463 if pa == p1 or pa == p2: # linear
463 pass # all good
464 pass # all good
@@ -1,6 +1,6 b''
1 created new head
1 created new head
2 % local deleted a file, remote removed
2 % local deleted a file, remote removed
3 abort: outstanding uncommitted changes
3 abort: outstanding uncommitted changes (use 'hg status' to list changes)
4 resolving manifests
4 resolving manifests
5 removing a
5 removing a
6 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
6 0 files updated, 0 files merged, 1 files removed, 0 files unresolved
@@ -40,7 +40,7 b' created new head'
40 Contents of b should be "this is file b1"
40 Contents of b should be "this is file b1"
41 This is file b1
41 This is file b1
42 %% merge fails
42 %% merge fails
43 abort: outstanding uncommitted changes
43 abort: outstanding uncommitted changes (use 'hg status' to list changes)
44 %% merge expected!
44 %% merge expected!
45 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
45 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
46 (branch merge, don't forget to commit)
46 (branch merge, don't forget to commit)
@@ -54,7 +54,7 b' M b'
54 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
54 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
55 created new head
55 created new head
56 %% merge of b should fail
56 %% merge of b should fail
57 abort: outstanding uncommitted changes
57 abort: outstanding uncommitted changes (use 'hg status' to list changes)
58 %% merge of b expected
58 %% merge of b expected
59 merging for b
59 merging for b
60 merging b
60 merging b
@@ -107,7 +107,7 b' summary: 2'
107
107
108 abort: crosses branches (use 'hg merge' or 'hg update -C' to discard changes)
108 abort: crosses branches (use 'hg merge' or 'hg update -C' to discard changes)
109 failed
109 failed
110 abort: outstanding uncommitted changes
110 abort: outstanding uncommitted changes (use 'hg status' to list changes)
111 failed
111 failed
112 resolving manifests
112 resolving manifests
113 overwrite False partial False
113 overwrite False partial False
General Comments 0
You need to be logged in to leave comments. Login now