annotate scripts/notify-roundup/doc/README.hg @ 4197:e5917e2386d4 gsoc-2009

Fixed a lot of problems with hg notify implementation
author Pygi <pygi@users.sourceforge.net>
date Wed, 08 Jul 2009 20:54:11 +0000
parents 1eaef431a785
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4195
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
1 Roundup devel tracker in love with Mercurial
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
2 =============================================
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
3
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
4 This document serves a tutorial on setting up a Roundup instance
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
5 with devel template featuring Mercurial integration. Several assumptions
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
6 are made in this tutorial:
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
7
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
8 1) You've checked out gsoc-2009 Roundup branch
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
9 2) You know how to setup mercurial repository
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
10 3) You want to work with a local mercurial repository
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
11
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
12 Let's follow the steps:
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
13
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
14 1) Setup Mercurial post-commit hook
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
15
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
16 a) Copy notify-roundup.sh from scripts/notify-roundup/hg/notify-roundup.sh to somewhere
4197
e5917e2386d4 Fixed a lot of problems with hg notify implementation
Pygi <pygi@users.sourceforge.net>
parents: 4196
diff changeset
17 b) Change paths to notify-roundup.{py,ini} and your roundup instance inside notify-roundup.sh [1]
4195
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
18 b) Make sure its executable (chmod +x)
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
19 c) Add the following to /path/to/hg/repo/.hg/hgrc
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
20
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
21 [hooks]
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
22 commit = /path/to/notify-roundup.sh
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
23
4197
e5917e2386d4 Fixed a lot of problems with hg notify implementation
Pygi <pygi@users.sourceforge.net>
parents: 4196
diff changeset
24 Note: Commit should probably be changed by "incoming". This is subject to further investigation.
e5917e2386d4 Fixed a lot of problems with hg notify implementation
Pygi <pygi@users.sourceforge.net>
parents: 4196
diff changeset
25
4195
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
26 [1] notify-roundup.py and notify-roundup.ini can be found in scripts/notify-roundup
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
27
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
28 2) Modify notify-roundup.ini
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
29
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
30 a) Set tracker home: tracker-home = /path/to/tracker-home
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
31 b) Set address mappings
4197
e5917e2386d4 Fixed a lot of problems with hg notify implementation
Pygi <pygi@users.sourceforge.net>
parents: 4196
diff changeset
32 Please be aware that we are playing tricks with Mercurial here. Your Roundup user should be the same
e5917e2386d4 Fixed a lot of problems with hg notify implementation
Pygi <pygi@users.sourceforge.net>
parents: 4196
diff changeset
33 as your first name for Mercurial. Lets explore that further with an example:
e5917e2386d4 Fixed a lot of problems with hg notify implementation
Pygi <pygi@users.sourceforge.net>
parents: 4196
diff changeset
34
e5917e2386d4 Fixed a lot of problems with hg notify implementation
Pygi <pygi@users.sourceforge.net>
parents: 4196
diff changeset
35 HG author is set as: Mario Danic <mario@nospam.com>
e5917e2386d4 Fixed a lot of problems with hg notify implementation
Pygi <pygi@users.sourceforge.net>
parents: 4196
diff changeset
36 Notify-roundup would look for address mapping like this:
e5917e2386d4 Fixed a lot of problems with hg notify implementation
Pygi <pygi@users.sourceforge.net>
parents: 4196
diff changeset
37 mario = whatever_email_you_registered_with_to_Roundup
e5917e2386d4 Fixed a lot of problems with hg notify implementation
Pygi <pygi@users.sourceforge.net>
parents: 4196
diff changeset
38
e5917e2386d4 Fixed a lot of problems with hg notify implementation
Pygi <pygi@users.sourceforge.net>
parents: 4196
diff changeset
39 So it takes your first name, lowers all chars and uses mappings
e5917e2386d4 Fixed a lot of problems with hg notify implementation
Pygi <pygi@users.sourceforge.net>
parents: 4196
diff changeset
40 to find appropriate Roundup user.
4195
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
41 c) Set VCS type to hg
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
42
4197
e5917e2386d4 Fixed a lot of problems with hg notify implementation
Pygi <pygi@users.sourceforge.net>
parents: 4196
diff changeset
43 3) Now, now, this wasn't so hard :)
4195
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
44
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
45 How-to format mercurial commit message
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
46 =======================================
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
47
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
48 By default, notify-roundup handles bugs.
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
49 To change status of bug1, format your commit
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
50 message like this:
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
51
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
52 bug1 pending
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
53
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
54 Current limitations and bugs
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
55 ============================
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
56
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
57 1) Notify-roundup can work only with one item-class
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
58 2) Notify-roundup can only modify Status
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
59 3) Commit date isn't parsed
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
60 4) Summary isn't composed
4197
e5917e2386d4 Fixed a lot of problems with hg notify implementation
Pygi <pygi@users.sourceforge.net>
parents: 4196
diff changeset
61 5) Changed files should be generated and posted
e5917e2386d4 Fixed a lot of problems with hg notify implementation
Pygi <pygi@users.sourceforge.net>
parents: 4196
diff changeset
62 6) Diff should be created for vcs_rev page
e5917e2386d4 Fixed a lot of problems with hg notify implementation
Pygi <pygi@users.sourceforge.net>
parents: 4196
diff changeset
63 7) Parse multiple lines of commit message
e5917e2386d4 Fixed a lot of problems with hg notify implementation
Pygi <pygi@users.sourceforge.net>
parents: 4196
diff changeset
64 * This might already work
4195
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
65
f70e9ea70900 Initial hg readme
Pygi <pygi@users.sourceforge.net>
parents:
diff changeset
66 We are aware of the those limitations, and have plans to alleviate them in the future.

Roundup Issue Tracker: http://roundup-tracker.org/