Mercurial > hg-website
view text/workflows.txt @ 117:f3bf81b67f7b
workflows: Added the basic patch submission workflow.
author | Arne Babenhauserheide <bab@draketo.de> |
---|---|
date | Fri, 24 Apr 2009 10:46:36 +0200 |
parents | 7666e300f284 |
children | a5c7422e4e4c |
line wrap: on
line source
= Learning Mercurial in Workflows = == Intro == With Mercurial you can use a multitude of different workflows. This page shows some of them, including their use cases. It is intended to make it easier for you to create your own workflow. To write this page we gathered [real life workflows](wiki - workflows), so every more complex workflow in here has proven itself in real life usage. We begin with basic workflows and then go on to more complex examples. The workflows on this page are rather terse to give you a good overview. You can find a longer introduction which shows how to use these workflows in [learning Mercurial in workflows](learning_mercurial_in_workflows). <!--Structure: * For whom? -> Why? * What do you need? -> Resources + extensions * Single Developer workflow * Sharing changes. --> <!-- Plan * Simple workflows without extensions * Complex Workflows, including collaborative patch development and similar. * Smoothing workflows with extensions -> i.e. shelve before merging. Workflows: * One-off patch submission * Lone Developer * ... --> == Workflows == === One-off patch submission === ==== For whom? ==== If you just want to submit a short patch to a project, this workflow is right for you. ==== Requirements ==== You need just Mercurial (command line) and an email address to which you can send the patch. ==== Flow ==== First get the repository $ hg clone http://hg-scm.org/hello Now do and commit your changes $ cd hello $ (edit files) $ hg add (new files) $ hg commit -m 'short descriptioni of the changes' Export your patch $ hg export tip > patch.diff And send patch.diff to the developers email address, ideally with a description what your patch does and why it's important. ==== Modifications ==== You can also upload the patch, for example to a bugtracker. == Lone Developer == ...