From a51de094aba9e272e6f216a705fc9259553dc9cc Mon Sep 17 00:00:00 2001 From: Darren Salt Date: Sun, 7 Mar 2010 18:39:55 +0000 Subject: Update docs wrt lack of CVS; retitle the FAQ list. --- doc/hackersguide/hackersguide.sgml | 3 +- doc/hackersguide/overview.sgml | 67 ++++++++++++++++++++++++++++++-------- 2 files changed, 55 insertions(+), 15 deletions(-) (limited to 'doc/hackersguide') diff --git a/doc/hackersguide/hackersguide.sgml b/doc/hackersguide/hackersguide.sgml index ebc42d4c7..e33304110 100644 --- a/doc/hackersguide/hackersguide.sgml +++ b/doc/hackersguide/hackersguide.sgml @@ -22,9 +22,10 @@ MarcoZühlke MikeMelanson MichaelRoitzsch + DarrenSalt - 2001-2003 + 2001-2010 the xine project team diff --git a/doc/hackersguide/overview.sgml b/doc/hackersguide/overview.sgml index 18cc40396..bf036edbc 100644 --- a/doc/hackersguide/overview.sgml +++ b/doc/hackersguide/overview.sgml @@ -793,7 +793,7 @@ - + How to contribute Make sure you send your patches in unified diff format to @@ -811,21 +811,60 @@ committable. This normally means that we want your name and email address (we're not keen on pseudonyms), a subject line which provides a convenient summary of your changes, and body text which provides a longer - description (if needed). Patches must be generated using hg - diff or cvs -z9 diff, depending on which is - used for the repository, and always from within the top level of the - checked-out source. + description (if needed). + + + There are a few ways to submit your patches: + + + + hg diff is probably the easiest. You'll need a + subject line and body text as described above. If you're copying or + renaming files, or a file should be marked as executable, then use + hg diff --git; this will include the necessary + information (if copying or renaming, you need to have used hg + copy or hg rename for this to work). + + + If you're attaching the patch (recommended), then including the + metadata in the patch file is recommended, e.g. + + From: Fred Patcher <patcher@example.com> +Subject: Properly toggle the randomiser switch + +The randomiser switch was sometimes not being toggled, leading to random +behaviour. + +diff --git a/foo/control.c b/foo/control.c +... + + + + diff -u is also acceptable, but we prefer that you + do so from the top-level directory within the source code (prefix the + files' path names with ./) or from the directory + containing the source code directory. Basically, use hg + diff if you can. + + + + + hg email is preferred. You'll need to commit your + changes locally for this to work, but this is the easiest way of + sending a set of patches for inclusion and review; it'll send the mail + directly. + + + + + hg export can also be used with specific changeset + identifiers. Again, you'll need to commit your changes locally for + this to work. + + + - If your patch is intended for a Mercurial-format repository, then - committing it locally and using - hg export . >foo.patch - to create the file to be attached is acceptable (but note that the first - line – up to the first line feed – of the commit message is regarded as - the patch summary; if you're not sure, check with - hg log -r.. - Alternatively, use From: and Subject: lines - in the patch file itself; this is useful when forwarding. Patches should normally be included as attachments. Some mail clients and -- cgit v1.2.3