Mercurial > hg-stable
comparison hgext/mq.py @ 9824:87c92b260710
mq: fix literal blocks in docstrings
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Wed, 11 Nov 2009 00:05:12 +0100 |
parents | f16ec85f125c |
children | 24bc6e414610 |
comparison
equal
deleted
inserted
replaced
9823:11d7bb5e0df2 | 9824:87c92b260710 |
---|---|
2088 | 2088 |
2089 With no arguments, print the currently active guards. | 2089 With no arguments, print the currently active guards. |
2090 With arguments, set guards for the named patch. | 2090 With arguments, set guards for the named patch. |
2091 NOTE: Specifying negative guards now requires '--'. | 2091 NOTE: Specifying negative guards now requires '--'. |
2092 | 2092 |
2093 To set guards on another patch: | 2093 To set guards on another patch:: |
2094 | |
2094 hg qguard -- other.patch +2.6.17 -stable | 2095 hg qguard -- other.patch +2.6.17 -stable |
2095 ''' | 2096 ''' |
2096 def status(idx): | 2097 def status(idx): |
2097 guards = q.series_guards[idx] or ['unguarded'] | 2098 guards = q.series_guards[idx] or ['unguarded'] |
2098 ui.write('%s: %s\n' % (q.series[idx], ' '.join(guards))) | 2099 ui.write('%s: %s\n' % (q.series[idx], ' '.join(guards))) |
2334 | 2335 |
2335 Use the qguard command to set or print guards on patch, then use | 2336 Use the qguard command to set or print guards on patch, then use |
2336 qselect to tell mq which guards to use. A patch will be pushed if | 2337 qselect to tell mq which guards to use. A patch will be pushed if |
2337 it has no guards or any positive guards match the currently | 2338 it has no guards or any positive guards match the currently |
2338 selected guard, but will not be pushed if any negative guards | 2339 selected guard, but will not be pushed if any negative guards |
2339 match the current guard. For example: | 2340 match the current guard. For example:: |
2340 | 2341 |
2341 qguard foo.patch -stable (negative guard) | 2342 qguard foo.patch -stable (negative guard) |
2342 qguard bar.patch +stable (positive guard) | 2343 qguard bar.patch +stable (positive guard) |
2343 qselect stable | 2344 qselect stable |
2344 | 2345 |