Show More
@@ -8,7 +8,7 b'' | |||
|
8 | 8 | |
|
9 | 9 | "Don't use a chainsaw to cut your food!" |
|
10 | 10 | |
|
11 |
The chainsaw |
|
|
11 | The chainsaw is a collection of commands that are so much geared towards a | |
|
12 | 12 | specific use case in a specific context or environment that they are totally |
|
13 | 13 | inappropriate and **really dangerous** in other contexts. |
|
14 | 14 | |
@@ -21,25 +21,20 b' variable (see :hg:`help scripting`).' | |||
|
21 | 21 | |
|
22 | 22 | import shutil |
|
23 | 23 | |
|
24 |
from |
|
|
25 |
from |
|
|
24 | from ..i18n import _ | |
|
25 | from .. import ( | |
|
26 | 26 | cmdutil, |
|
27 | 27 | commands, |
|
28 | 28 | error, |
|
29 | 29 | localrepo, |
|
30 | 30 | registrar, |
|
31 | 31 | ) |
|
32 |
from |
|
|
32 | from ..utils import ( | |
|
33 | 33 | urlutil, |
|
34 | 34 | ) |
|
35 | 35 | |
|
36 | 36 | cmdtable = {} |
|
37 | 37 | command = registrar.command(cmdtable) |
|
38 | # Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for | |
|
39 | # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should | |
|
40 | # be specifying the version(s) of Mercurial they are tested with, or | |
|
41 | # leave the attribute unspecified. | |
|
42 | testedwith = b'ships-with-hg-core' | |
|
43 | 38 | |
|
44 | 39 | |
|
45 | 40 | @command( |
@@ -6,11 +6,12 b'' | |||
|
6 | 6 | # GNU General Public License version 2 or any later version. |
|
7 | 7 | |
|
8 | 8 | from .i18n import _ |
|
9 | from .admin import verify | |
|
9 | from .admin import chainsaw, verify | |
|
10 | 10 | from . import error, registrar, transaction |
|
11 | 11 | |
|
12 | 12 | |
|
13 | 13 | table = {} |
|
14 | table.update(chainsaw.command._table) | |
|
14 | 15 | command = registrar.command(table) |
|
15 | 16 | |
|
16 | 17 |
@@ -5,11 +5,6 b' Tests for the admin::chainsaw-update com' | |||
|
5 | 5 | setup |
|
6 | 6 | ===== |
|
7 | 7 | |
|
8 | $ cat >> $HGRCPATH << EOF | |
|
9 | > [extensions] | |
|
10 | > chainsaw= | |
|
11 | > EOF | |
|
12 | ||
|
13 | 8 | $ hg init src |
|
14 | 9 | $ cd src |
|
15 | 10 | $ echo 1 > root |
@@ -3,6 +3,7 b' Show all commands except debug commands' | |||
|
3 | 3 | abort |
|
4 | 4 | add |
|
5 | 5 | addremove |
|
6 | admin::chainsaw-update | |
|
6 | 7 | admin::verify |
|
7 | 8 | annotate |
|
8 | 9 | archive |
@@ -66,6 +67,7 b' Show all commands that start with "a"' | |||
|
66 | 67 | abort |
|
67 | 68 | add |
|
68 | 69 | addremove |
|
70 | admin::chainsaw-update | |
|
69 | 71 | admin::verify |
|
70 | 72 | annotate |
|
71 | 73 | archive |
@@ -260,6 +262,7 b' Show all commands + options' | |||
|
260 | 262 | abort: dry-run |
|
261 | 263 | add: include, exclude, subrepos, dry-run |
|
262 | 264 | addremove: similarity, subrepos, include, exclude, dry-run |
|
265 | admin::chainsaw-update: purge-unknown, purge-ignored, rev, source, dest, initial-clone-minimal | |
|
263 | 266 | admin::verify: check, option |
|
264 | 267 | annotate: rev, follow, no-follow, text, user, file, date, number, changeset, line-number, skip, line-range, ignore-all-space, ignore-space-change, ignore-blank-lines, ignore-space-at-eol, include, exclude, template |
|
265 | 268 | archive: no-decode, prefix, rev, type, subrepos, include, exclude |
@@ -412,6 +412,9 b' Test short command list with verbose opt' | |||
|
412 | 412 | |
|
413 | 413 | abort abort an unfinished operation (EXPERIMENTAL) |
|
414 | 414 | add add the specified files on the next commit |
|
415 | admin::chainsaw-update, admin::chainsawupdate | |
|
416 | pull and update to a given revision, no matter what, | |
|
417 | (EXPERIMENTAL) | |
|
415 | 418 | annotate, blame |
|
416 | 419 | show changeset information by line for each file |
|
417 | 420 | clone make a copy of an existing repository |
@@ -2535,6 +2538,13 b' Dish up an empty repo; serve it cold.' | |||
|
2535 | 2538 | add the specified files on the next commit |
|
2536 | 2539 | </td></tr> |
|
2537 | 2540 | <tr><td> |
|
2541 | <a href="/help/admin::chainsaw-update"> | |
|
2542 | admin::chainsaw-update | |
|
2543 | </a> | |
|
2544 | </td><td> | |
|
2545 | pull and update to a given revision, no matter what, (EXPERIMENTAL) | |
|
2546 | </td></tr> | |
|
2547 | <tr><td> | |
|
2538 | 2548 | <a href="/help/annotate"> |
|
2539 | 2549 | annotate |
|
2540 | 2550 | </a> |
@@ -2038,6 +2038,10 b' help/ shows help topics' | |||
|
2038 | 2038 | "topic": "add" |
|
2039 | 2039 | }, |
|
2040 | 2040 | { |
|
2041 | "summary": "pull and update to a given revision, no matter what, (EXPERIMENTAL)", | |
|
2042 | "topic": "admin::chainsaw-update" | |
|
2043 | }, | |
|
2044 | { | |
|
2041 | 2045 | "summary": "show changeset information by line for each file", |
|
2042 | 2046 | "topic": "annotate" |
|
2043 | 2047 | }, |
General Comments 0
You need to be logged in to leave comments.
Login now