Changes between Version 8 and Version 9 of UfoRevisionControl


Ignore:
Timestamp:
Sep 6, 2011, 7:03:51 PM (13 years ago)
Author:
Matthias Vogelgesang
Comment:

Propose a canonical commit message format

Legend:

Unmodified
Added
Removed
Modified
  • UfoRevisionControl

    v8 v9  
    2020{{{
    2121bzr branch bzr+ssh://user@ufo.kit.edu/vogelgesang/PyHST
     22}}}
     23
     24== Committing changes ==
     25
     26Any changes that you make, are ''locally'' stored with the commit command
     27{{{
     28bzr commit
     29}}}
     30which asks you for a commit message.
     31
     32Similar to Git, Bazaar handles the very first line of a commit message in a
     33special way. For example `bzr log --line` prints the whole log with revision number,
     34author, date and first line. To keep things nice and tidy, this first line
     35should ''summarize'' the commit in ''50'' characters or less. To increase
     36readability of these lines you may use the `<prefix>: <description>` format,
     37with the following possible prefixes:
     38
     39* Fix (e.g. `Fix: segmentation fault` or `Fix: bug #1234`)
     40* Add (e.g. `Add: web interface`)
     41* Update (e.g. `Update: version`)
     42
     43Because, this line is limited to only 50 characters, you can use several
     44paragraphs divided by newlines to explain not only ''what'' you did, but more
     45importantly ''why'' you changed something. These paragraphs must be wrapped
     46at 72 characters.
     47
     48You should definately make use of Bazaar's builtin bug-tracker support. To
     49enable this for the UFO project add this line to your `bazaar.conf` (located in
     50`~/.bazaar`):
     51
     52{{{
     53[DEFAULT]
     54trac_ufo_url = http://ufo.kit.edu/ufo
     55}}}
     56
     57Now, for each bug that has an associated ticket, you can mark the fixing commit
     58with
     59{{{
     60bzr commit --fixes ufo:123
    2261}}}
    2362
     
    5594  bzr bind bzr+ssh://user_name@ufo.kit.edu/user_name/branch1
    5695}}}
     96
     97
    5798
    5899[[BR]]