##// END OF EJS Templates
commit: abort on merge with missing files...
Patrick Mezard -
r16536:63c817ea stable
parent child Browse files
Show More
@@ -1147,6 +1147,9 b' class localrepository(repo.repository):'
1147 and wctx.branch() == wctx.p1().branch()):
1147 and wctx.branch() == wctx.p1().branch()):
1148 return None
1148 return None
1149
1149
1150 if merge and changes[3]:
1151 raise util.Abort(_("cannot commit merge with missing files"))
1152
1150 ms = mergemod.mergestate(self)
1153 ms = mergemod.mergestate(self)
1151 for f in changes[0]:
1154 for f in changes[0]:
1152 if f in ms and ms[f] == 'u':
1155 if f in ms and ms[f] == 'u':
@@ -16,5 +16,10 b''
16 (branch merge, don't forget to commit)
16 (branch merge, don't forget to commit)
17 $ rm b
17 $ rm b
18 $ echo This is file c22 > c
18 $ echo This is file c22 > c
19
20 Test hg behaves when committing with a missing file added by a merge
21
19 $ hg commit -m "commit #3"
22 $ hg commit -m "commit #3"
23 abort: cannot commit merge with missing files
24 [255]
20
25
General Comments 0
You need to be logged in to leave comments. Login now