Mercurial > hg-allpaths
annotate mercurial_all_paths.py @ 47:916b05f73b53
preliminary impl of groups
author | Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl> |
---|---|
date | Sun, 25 Sep 2016 10:22:37 +0200 |
parents | 237dd8c4fe78 |
children | 00995da9c204 |
rev | line source |
---|---|
47
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
1 # -*- coding: utf-8 -*- |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
2 # |
0 | 3 # allpaths.py - execute commands on multiple paths |
4 # | |
5 # This software may be used and distributed according to the terms of | |
6 # the GNU General Public License version 2 or any later version. | |
7 | |
8 '''execute commands on multiple paths''' | |
9 | |
10 import mercurial.util | |
11 import mercurial.commands | |
7
1ea915867337
Standard push options are imported from mercurial, not copied here.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
6
diff
changeset
|
12 import mercurial.cmdutil |
0 | 13 from mercurial.i18n import _ |
14 | |
34
7500a4ecb935
Preliminary steps towards tests (tox.ini, would-be testedwith decl)
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
31
diff
changeset
|
15 # pylint:disable=invalid-name,broad-except,line-too-long |
0 | 16 |
47
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
17 def _find_all_paths(ui, skip_ignored=False, sort_by_priority=False): |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
18 """ |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
19 Finds all paths defined for repo |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
20 :return: list of pairs (alias, path) |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
21 """ |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
22 paths = ui.configitems(group) |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
23 if not paths: |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
24 raise mercurial.util.Abort(_('No paths defined for repository')) |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
25 |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
26 if skip_ignored: |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
27 ignored = ui.configlist("all_paths", "ignore") |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
28 paths = [(alias, path) for alias, path in paths if alias not in ignored] |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
29 if not paths: |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
30 raise mercurial.util.Abort(_('All paths defined for this repository are ignored')) |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
31 |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
32 if sort_by_priority: |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
33 #priority = ui.configlist("all_paths", "priority") |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
34 #paths.sort(…) |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
35 pass # TODO |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
36 |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
37 return paths |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
38 |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
39 def _find_paths(ui, group=None): |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
40 """ |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
41 Finds and returns all paths defined in given group, or all paths |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
42 (sans config) if group is not specified. |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
43 |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
44 :param ui: repository ui |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
45 :param group: group name or None for all paths |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
46 :return: list of pairs (alias, path) |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
47 """ |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
48 if not group: |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
49 return _find_all_paths(ui, skip_ignored=True, sort_by_priority=True) |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
50 |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
51 # „Modern” syntax |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
52 grp_def = ui.configlist("all_paths", "group." + group) |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
53 if grp_def: |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
54 all_paths = dict(_find_all_paths(ui)) |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
55 paths = [] |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
56 for item in grp_def: |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
57 if item in all_paths: |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
58 paths.append((item, all_paths[item])) |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
59 if not paths: |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
60 raise mercurial.util.Abort(_('None of the paths from group %s is defined in this repository') % group) |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
61 |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
62 return paths |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
63 |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
64 # „Legacy” syntax, used also for all paths |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
65 paths = ui.configitems(group) |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
66 if not paths: |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
67 raise mercurial.util.Abort(_('No paths defined in section %s') % group) |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
68 return paths |
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
69 |
8
eced61373a74
Added pullall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
7
diff
changeset
|
70 |
44
2d6c7e0c1b2f
Added newline between successive items output
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
41
diff
changeset
|
71 def _iter_over_paths(command, ui, repo, add_sep, **opts): |
8
eced61373a74
Added pullall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
7
diff
changeset
|
72 """execute given command on multiple paths""" |
6
b1d440f1027a
(internal) Changed the way in which extension options are separated:
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
1
diff
changeset
|
73 # Extract our options and filter them out |
47
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
74 group = opts.pop('group', None) |
6
b1d440f1027a
(internal) Changed the way in which extension options are separated:
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
1
diff
changeset
|
75 ignore_errors = opts.pop('ignore_errors', None) |
0 | 76 |
77 # Get the paths to push to. | |
47
916b05f73b53
preliminary impl of groups
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
45
diff
changeset
|
78 paths = _find_paths(ui, group) |
0 | 79 |
12
bed42905e871
Avoiding doing pull or push twice in case some path has more than one
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
11
diff
changeset
|
80 # Used to avoid handling duplicate paths twice |
bed42905e871
Avoiding doing pull or push twice in case some path has more than one
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
11
diff
changeset
|
81 handled = {} |
44
2d6c7e0c1b2f
Added newline between successive items output
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
41
diff
changeset
|
82 # Used to add extra newline between items |
2d6c7e0c1b2f
Added newline between successive items output
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
41
diff
changeset
|
83 sep = '' |
12
bed42905e871
Avoiding doing pull or push twice in case some path has more than one
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
11
diff
changeset
|
84 |
bed42905e871
Avoiding doing pull or push twice in case some path has more than one
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
11
diff
changeset
|
85 # Act! |
bed42905e871
Avoiding doing pull or push twice in case some path has more than one
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
11
diff
changeset
|
86 for alias, path in paths: |
bed42905e871
Avoiding doing pull or push twice in case some path has more than one
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
11
diff
changeset
|
87 if path in handled: |
45
237dd8c4fe78
Finalized separators
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
44
diff
changeset
|
88 ui.status(sep + _("Skipping %s as path %s was already handled\n") % (alias, handled[path])) |
237dd8c4fe78
Finalized separators
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
44
diff
changeset
|
89 sep = '\n' |
12
bed42905e871
Avoiding doing pull or push twice in case some path has more than one
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
11
diff
changeset
|
90 else: |
44
2d6c7e0c1b2f
Added newline between successive items output
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
41
diff
changeset
|
91 ui.status(sep) |
2d6c7e0c1b2f
Added newline between successive items output
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
41
diff
changeset
|
92 sep = '\n' if add_sep else '' |
12
bed42905e871
Avoiding doing pull or push twice in case some path has more than one
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
11
diff
changeset
|
93 handled[path] = alias |
bed42905e871
Avoiding doing pull or push twice in case some path has more than one
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
11
diff
changeset
|
94 try: |
bed42905e871
Avoiding doing pull or push twice in case some path has more than one
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
11
diff
changeset
|
95 command(ui, repo, path, **opts) |
bed42905e871
Avoiding doing pull or push twice in case some path has more than one
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
11
diff
changeset
|
96 except Exception as e: |
bed42905e871
Avoiding doing pull or push twice in case some path has more than one
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
11
diff
changeset
|
97 if not ignore_errors: |
bed42905e871
Avoiding doing pull or push twice in case some path has more than one
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
11
diff
changeset
|
98 raise |
31
9d595bda6f2f
Fixed buggy information printed on errors:
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
13
diff
changeset
|
99 ui.warn(_('error handling %s: %s\n') % (alias, e)) |
44
2d6c7e0c1b2f
Added newline between successive items output
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
41
diff
changeset
|
100 sep = '\n' |
8
eced61373a74
Added pullall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
7
diff
changeset
|
101 |
eced61373a74
Added pullall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
7
diff
changeset
|
102 def pushall(ui, repo, **opts): |
35
6dae5ed53f22
Setting up tests for 3.8 (not yet really tested)
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
34
diff
changeset
|
103 """execute push on multiple paths""" |
44
2d6c7e0c1b2f
Added newline between successive items output
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
41
diff
changeset
|
104 _iter_over_paths(mercurial.commands.push, ui, repo, True, **opts) |
8
eced61373a74
Added pullall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
7
diff
changeset
|
105 |
eced61373a74
Added pullall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
7
diff
changeset
|
106 |
eced61373a74
Added pullall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
7
diff
changeset
|
107 def pullall(ui, repo, **opts): |
35
6dae5ed53f22
Setting up tests for 3.8 (not yet really tested)
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
34
diff
changeset
|
108 """execute pull on multiple paths""" |
44
2d6c7e0c1b2f
Added newline between successive items output
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
41
diff
changeset
|
109 _iter_over_paths(mercurial.commands.pull, ui, repo, True, **opts) |
0 | 110 |
111 | |
9
dac7580bfff2
Added incomingall and outgoingall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
8
diff
changeset
|
112 def incomingall(ui, repo, **opts): |
dac7580bfff2
Added incomingall and outgoingall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
8
diff
changeset
|
113 """execute incoming on multiple paths""" |
44
2d6c7e0c1b2f
Added newline between successive items output
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
41
diff
changeset
|
114 _iter_over_paths(mercurial.commands.incoming, ui, repo, False, **opts) |
9
dac7580bfff2
Added incomingall and outgoingall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
8
diff
changeset
|
115 |
dac7580bfff2
Added incomingall and outgoingall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
8
diff
changeset
|
116 |
dac7580bfff2
Added incomingall and outgoingall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
8
diff
changeset
|
117 def outgoingall(ui, repo, **opts): |
dac7580bfff2
Added incomingall and outgoingall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
8
diff
changeset
|
118 """execute outgoing on multiple paths""" |
44
2d6c7e0c1b2f
Added newline between successive items output
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
41
diff
changeset
|
119 _iter_over_paths(mercurial.commands.outgoing, ui, repo, False, **opts) |
9
dac7580bfff2
Added incomingall and outgoingall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
8
diff
changeset
|
120 |
dac7580bfff2
Added incomingall and outgoingall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
8
diff
changeset
|
121 |
7
1ea915867337
Standard push options are imported from mercurial, not copied here.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
6
diff
changeset
|
122 def _original_options(cmdname): |
1ea915867337
Standard push options are imported from mercurial, not copied here.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
6
diff
changeset
|
123 """Gets list of given command options as specified in Mercurial core""" |
1ea915867337
Standard push options are imported from mercurial, not copied here.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
6
diff
changeset
|
124 _, spec = mercurial.cmdutil.findcmd(cmdname, mercurial.commands.table) |
1ea915867337
Standard push options are imported from mercurial, not copied here.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
6
diff
changeset
|
125 return spec[1] |
1ea915867337
Standard push options are imported from mercurial, not copied here.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
6
diff
changeset
|
126 |
1ea915867337
Standard push options are imported from mercurial, not copied here.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
6
diff
changeset
|
127 |
9
dac7580bfff2
Added incomingall and outgoingall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
8
diff
changeset
|
128 EXT_OPTS = [ |
dac7580bfff2
Added incomingall and outgoingall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
8
diff
changeset
|
129 ('g', 'group', 'paths', _('use a named group of paths')), |
dac7580bfff2
Added incomingall and outgoingall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
8
diff
changeset
|
130 ('', 'ignore-errors', None, _('continue execution despite errors')), |
dac7580bfff2
Added incomingall and outgoingall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
8
diff
changeset
|
131 ] |
dac7580bfff2
Added incomingall and outgoingall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
8
diff
changeset
|
132 |
0 | 133 cmdtable = { |
6
b1d440f1027a
(internal) Changed the way in which extension options are separated:
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
1
diff
changeset
|
134 "pushall": ( |
b1d440f1027a
(internal) Changed the way in which extension options are separated:
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
1
diff
changeset
|
135 pushall, |
9
dac7580bfff2
Added incomingall and outgoingall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
8
diff
changeset
|
136 EXT_OPTS + _original_options('push'), |
7
1ea915867337
Standard push options are imported from mercurial, not copied here.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
6
diff
changeset
|
137 _('[-g GROUP] [--ignore-errors] <push options>')), |
8
eced61373a74
Added pullall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
7
diff
changeset
|
138 "pullall": ( |
eced61373a74
Added pullall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
7
diff
changeset
|
139 pullall, |
9
dac7580bfff2
Added incomingall and outgoingall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
8
diff
changeset
|
140 EXT_OPTS + _original_options('pull'), |
8
eced61373a74
Added pullall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
7
diff
changeset
|
141 _('[-g GROUP] [--ignore-errors] <pull options>')), |
41
b8a7342fbf23
outgoingall and incomingall can't handle -g as it is already taken,
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
35
diff
changeset
|
142 # For incoming and outgoing -g is taken (--git diff format) |
9
dac7580bfff2
Added incomingall and outgoingall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
8
diff
changeset
|
143 "incomingall": ( |
dac7580bfff2
Added incomingall and outgoingall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
8
diff
changeset
|
144 incomingall, |
dac7580bfff2
Added incomingall and outgoingall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
8
diff
changeset
|
145 EXT_OPTS + _original_options('incoming'), |
41
b8a7342fbf23
outgoingall and incomingall can't handle -g as it is already taken,
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
35
diff
changeset
|
146 _('[--group GROUP] [--ignore-errors] <incoming options>')), |
9
dac7580bfff2
Added incomingall and outgoingall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
8
diff
changeset
|
147 "outgoingall": ( |
dac7580bfff2
Added incomingall and outgoingall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
8
diff
changeset
|
148 outgoingall, |
dac7580bfff2
Added incomingall and outgoingall
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
8
diff
changeset
|
149 EXT_OPTS + _original_options('outgoing'), |
41
b8a7342fbf23
outgoingall and incomingall can't handle -g as it is already taken,
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
35
diff
changeset
|
150 _('[--group GROUP] [--ignore-errors] <outgoing options>')), |
6
b1d440f1027a
(internal) Changed the way in which extension options are separated:
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
1
diff
changeset
|
151 } |
34
7500a4ecb935
Preliminary steps towards tests (tox.ini, would-be testedwith decl)
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
31
diff
changeset
|
152 |
35
6dae5ed53f22
Setting up tests for 3.8 (not yet really tested)
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
34
diff
changeset
|
153 testedwith = '2.7 2.9 3.0 3.3 3.6 3.7 3.8' |
34
7500a4ecb935
Preliminary steps towards tests (tox.ini, would-be testedwith decl)
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
31
diff
changeset
|
154 buglink = 'https://bitbucket.org/Mekk/mercurial-all_paths/issues' |