Reputation: 2963
How can I add a new file to mercurial diff patch ? I can't seem to find any information in the man pages.
Upvotes: 5
Views: 2341
Reputation: 85045
I'm not sure I fully understand your question but, if you are using Mercurial to generate a diff patch, the way to include new files you want to add to a repo is by marking the new files as part of the repo by using the hg add
command and then doing the diff
.
hg add newfile
hg diff > my.patch
Upvotes: 8