Include new files in hg diff patch

How to add a new file to Mercurial diff patch? I can not find any information on the man pages.

+4
source share
1 answer

I'm not sure I fully understand your question, but if you use Mercurial to create a diff patch, the way to include the new files you want to add to the repo is to mark the new files as part of the repo using the hg add command and then running diff .

 hg add newfile hg diff > my.patch 
+8
source

All Articles