Mercurial > hg
comparison hgext/mq.py @ 11307:7f72031d4047
mq: use hg reST role some more
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Tue, 08 Jun 2010 14:12:46 +0200 |
parents | a1aad8333864 |
children | fcd06ecd4cb7 |
comparison
equal
deleted
inserted
replaced
11305:d4cafcb63f77 | 11307:7f72031d4047 |
---|---|
1720 | 1720 |
1721 The patches must not be applied, and at least one patch is required. With | 1721 The patches must not be applied, and at least one patch is required. With |
1722 -k/--keep, the patch files are preserved in the patch directory. | 1722 -k/--keep, the patch files are preserved in the patch directory. |
1723 | 1723 |
1724 To stop managing a patch and move it into permanent history, | 1724 To stop managing a patch and move it into permanent history, |
1725 use the qfinish command.""" | 1725 use the :hg:`qfinish` command.""" |
1726 q = repo.mq | 1726 q = repo.mq |
1727 q.delete(repo, patches, opts) | 1727 q.delete(repo, patches, opts) |
1728 q.save_dirty() | 1728 q.save_dirty() |
1729 return 0 | 1729 return 0 |
1730 | 1730 |
2129 def guard(ui, repo, *args, **opts): | 2129 def guard(ui, repo, *args, **opts): |
2130 '''set or print guards for a patch | 2130 '''set or print guards for a patch |
2131 | 2131 |
2132 Guards control whether a patch can be pushed. A patch with no | 2132 Guards control whether a patch can be pushed. A patch with no |
2133 guards is always pushed. A patch with a positive guard ("+foo") is | 2133 guards is always pushed. A patch with a positive guard ("+foo") is |
2134 pushed only if the qselect command has activated it. A patch with | 2134 pushed only if the :hg:`qselect` command has activated it. A patch with |
2135 a negative guard ("-foo") is never pushed if the qselect command | 2135 a negative guard ("-foo") is never pushed if the :hg:`qselect` command |
2136 has activated it. | 2136 has activated it. |
2137 | 2137 |
2138 With no arguments, print the currently active guards. | 2138 With no arguments, print the currently active guards. |
2139 With arguments, set guards for the named patch. | 2139 With arguments, set guards for the named patch. |
2140 NOTE: Specifying negative guards now requires '--'. | 2140 NOTE: Specifying negative guards now requires '--'. |
2412 return 0 | 2412 return 0 |
2413 | 2413 |
2414 def select(ui, repo, *args, **opts): | 2414 def select(ui, repo, *args, **opts): |
2415 '''set or print guarded patches to push | 2415 '''set or print guarded patches to push |
2416 | 2416 |
2417 Use the qguard command to set or print guards on patch, then use | 2417 Use the :hg:`qguard` command to set or print guards on patch, then use |
2418 qselect to tell mq which guards to use. A patch will be pushed if | 2418 qselect to tell mq which guards to use. A patch will be pushed if |
2419 it has no guards or any positive guards match the currently | 2419 it has no guards or any positive guards match the currently |
2420 selected guard, but will not be pushed if any negative guards | 2420 selected guard, but will not be pushed if any negative guards |
2421 match the current guard. For example:: | 2421 match the current guard. For example:: |
2422 | 2422 |