~sircmpwn/sr.ht-docs

d8a5632719eebb3289cd8eb9cbeab26a9deb2871 — Nolan Prescott a month ago 0a2f49e
Document hg email patch formatting on lists.sr.ht

# HG changeset patch
# User Nolan Prescott <mail@nprescott.com>
# Date 1591924066 14400
#      Thu Jun 11 21:07:46 2020 -0400
# Node ID 88ecdd69e17b6da547fa3a74b1d161a6b5415eb9
# Parent  1eef932765628b0037f06c3f3ba58c7a449416e7
Document hg email patch formatting on lists.sr.ht

Mercuial patchset recognition for full web UI features require
git-style diffs in order to be parsed correctly by pygit2
1 files changed, 12 insertions(+), 0 deletions(-)

M hg.sr.ht/email.md
M hg.sr.ht/email.md => hg.sr.ht/email.md +12 -0
@@ 88,6 88,18 @@ looking for information which is suitable for filling out these config fields in
You can also set your SMTP password as `smtp.password`. If you don't, you
will be prompted for it when it's needed.

## Patch Formatting on [lists.sr.ht][lists.sr.ht]

Patches sent to [lists.sr.ht][lists.sr.ht] are only recognized when using [git
style][git style] diffs. This must be configured with [mercurial's
configuration file][hgrc]:

    [diff]
    git = 1

[lists.sr.ht]: https://lists.sr.ht/
[git style]: https://www.mercurial-scm.org/wiki/GitExtendedDiffFormat

## Send the patches along

When you've configured `hg email`, completed your work, and you're ready to send