Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Mercurial - cannot commit merge with missing files error

Tags:

dvcs

mercurial

I have done a 'hg merge' however when I attempt to do a 'hg commit -m "my msg.." I get the following error message :

abort: cannot commit merge with missing files

Can anyone explain how to fix this to allow the commit go through?

like image 694
Zabs Avatar asked Aug 22 '12 09:08

Zabs


3 Answers

Try hg status and look for files in state ! (missing).

The cause is that one of the files which is part of the merge has been deleted. Undelete the file and try again.

like image 120
Aaron Digulla Avatar answered Sep 24 '22 06:09

Aaron Digulla


Heres my approach

hg status will tell you what files are missing. Then you can either restore the file from somewhere

OR type in hg remove <path/name of missing file>

THEN commit. Your repo will be sane again, darwin willing.

like image 25
Shayne Avatar answered Sep 23 '22 06:09

Shayne


If you are using TortoiseHG, click in View/Commit. It will show you files in state ! (missing).

Right click on the file and choose Revert (undelete the file) and commit.

like image 25
Iasmini Gomes Avatar answered Sep 27 '22 06:09

Iasmini Gomes