Add --email option to export command for email-style patch formatting#981
Add --email option to export command for email-style patch formatting#981VishalGawade1 wants to merge 2 commits into
Conversation
|
@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
@VishalGawade1 has updated the pull request. You must reimport the pull request before landing. |
|
@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
Are you sure you didn't commit stuff by mistake? There's 1862 changed files but the functional change is only in one of them. |
|
@VishalGawade1 has updated the pull request. You must reimport the pull request before landing. |
|
@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
Ahh, Apologies for the oversight; I'm not sure how the |
|
@VishalGawade1 has updated the pull request. You must reimport the pull request before landing. |
|
@facebook-github-bot has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator. |
|
There was a Mercurial "patchbomb" extension: https://wiki.mercurial-scm.org/PatchbombExtension We deleted it since it has no internal use-cases but it can be re-added. If we backport the code, we can maintain a command-line UI familiar to Mercurial users. What do you think? |
|
Really sorry for being little inactive. Re-adding the 'patchbomb' extension sounds like a good to me. It would provide the email functionality in a way that's familiar to Mercurial users. |
Summary of Changes:
Fixes #318
New Flag: Adds the --email flag to format output with email headers.
Email Headers: Generates headers like From, Date, Subject, and Message-Id for each patch to create an email-style format.
Commit Message and Diff: Includes the full commit message, followed by diffstat and the full diff for each revision.
Default Behavior: If --email is not specified, the command falls back to its standard export functionality without email formatting.