Mercurial > hg-allpaths
annotate README.txt @ 61:5a517f942da0
Attempt to fix drone errors like
https://drone.io/bitbucket.org/Mekk/mercurial-all_paths/7
author | Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl> |
---|---|
date | Sun, 13 Nov 2016 20:30:10 +0100 |
parents | e710d5bec0b5 |
children | d262139732f7 |
rev | line source |
---|---|
4
7591d4101b93
Added preliminary setup.py
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
3
diff
changeset
|
1 .. -*- mode: rst; compile-command: "rst2html README.txt README.html" -*- |
0 | 2 |
10
62880e909417
README updates after changes
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
5
diff
changeset
|
3 ================================================ |
13
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
4 Mercurial All Paths extension |
10
62880e909417
README updates after changes
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
5
diff
changeset
|
5 ================================================ |
0 | 6 |
13
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
7 Push or pull to many (or all) paths at once. |
53 | 8 |drone-badge| |
13
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
9 |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
10 .. contents:: |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
11 :local: |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
12 :depth: 2 |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
13 |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
14 .. sectnum:: |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
15 |
36
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
16 Basic usage |
13
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
17 ================================================ |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
18 |
36
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
19 Execute:: |
10
62880e909417
README updates after changes
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
5
diff
changeset
|
20 |
62880e909417
README updates after changes
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
5
diff
changeset
|
21 hg pushall |
0 | 22 |
36
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
23 to push to all remotes which are defined for the repository. Or:: |
10
62880e909417
README updates after changes
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
5
diff
changeset
|
24 |
62880e909417
README updates after changes
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
5
diff
changeset
|
25 hg pullall |
0 | 26 |
36
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
27 to pull from all remotes in order. |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
28 |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
29 There are also:: |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
30 |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
31 hg incomingall |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
32 |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
33 hg outgoingall |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
34 |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
35 Standard push/pull options can be given, for example:: |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
36 |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
37 hg pushall -f -B issue-13724 |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
38 |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
39 hg pullall -r stable --insecure |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
40 |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
41 Those commands iterate over all paths returned by ``hg paths``. This |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
42 usually means iterating over paths defined in ``[paths]`` section of |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
43 ``.hg/hgrc``, but `Path Pattern`_ paths are also handled. You can |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
44 impact this behaviour by configuration, see below. |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
45 |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
46 |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
47 Defining path groups |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
48 ================================================ |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
49 |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
50 Instead of pushing/pulling everywhere, you can define and use *groups*:: |
0 | 51 |
10
62880e909417
README updates after changes
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
5
diff
changeset
|
52 hg pushall -g publish |
0 | 53 |
36
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
54 pushes to all paths from the ``publish`` group (where ``publish`` is |
41
b8a7342fbf23
outgoingall and incomingall can't handle -g as it is already taken,
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
36
diff
changeset
|
55 symbolic name of your choosing). Or:: |
b8a7342fbf23
outgoingall and incomingall can't handle -g as it is already taken,
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
36
diff
changeset
|
56 |
b8a7342fbf23
outgoingall and incomingall can't handle -g as it is already taken,
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
36
diff
changeset
|
57 hg pullall -g shared |
b8a7342fbf23
outgoingall and incomingall can't handle -g as it is already taken,
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
36
diff
changeset
|
58 |
b8a7342fbf23
outgoingall and incomingall can't handle -g as it is already taken,
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
36
diff
changeset
|
59 pulls from all paths in ``shared`` group. |
36
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
60 |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
61 There are two ways to define such a group: |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
62 |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
63 1. Define appropriate entry in ``[all_paths]`` section (either in ``.hg/hgrc`` |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
64 or in your global ``~/.hgrc``). For example:: |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
65 |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
66 [all_paths] |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
67 group.publish = bitbucket github backup |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
68 |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
69 (path aliases ``bitbucket``, ``github`` and ``backup`` must |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
70 be somehow defined). |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
71 |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
72 2. (Legacy method) Put the section of the same name in ``.hg/hgrc``, |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
73 and define all paths there. For example:: |
0 | 74 |
75 [publish] | |
76 bitbucket = ssh://hg@bitbucket.org/ludovicchabant/piecrust | |
77 github = git+ssh://git@github.com:ludovicchabant/PieCrust.git | |
36
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
78 backup = ssh://ludo@backup.local/piecrust |
0 | 79 |
36
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
80 The syntax is the same as in standard ``[paths]`` section, just |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
81 name the section with the name of your group. |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
82 |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
83 .. note:: |
10
62880e909417
README updates after changes
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
5
diff
changeset
|
84 |
36
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
85 Be careful to avoid conflicts with names which mean something |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
86 to Mercurial. For example ``web`` would be a bad name as ``[web]`` |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
87 section configures ``hg serve`` behaviour, and ``ui`` would be |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
88 fatal as ``[ui]`` configures various basic Mercurial settings. |
0 | 89 |
36
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
90 I recommend the former method as it avoids the risk of conflicts, |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
91 makes it easy to define groups globally instead of defining them for |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
92 every repository (especially handy if you use `Path Pattern`_), and is |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
93 more compact. |
0 | 94 |
41
b8a7342fbf23
outgoingall and incomingall can't handle -g as it is already taken,
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
36
diff
changeset
|
95 Groups are also handled for ``incomingall`` and ``outgoingall``, but |
b8a7342fbf23
outgoingall and incomingall can't handle -g as it is already taken,
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
36
diff
changeset
|
96 long ``--group`` option must be used (``-g`` is already taken by |
b8a7342fbf23
outgoingall and incomingall can't handle -g as it is already taken,
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
36
diff
changeset
|
97 standard Mercurial, means reporting in ``--git`` diff format):: |
b8a7342fbf23
outgoingall and incomingall can't handle -g as it is already taken,
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
36
diff
changeset
|
98 |
b8a7342fbf23
outgoingall and incomingall can't handle -g as it is already taken,
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
36
diff
changeset
|
99 hg outgoingall --group publish |
b8a7342fbf23
outgoingall and incomingall can't handle -g as it is already taken,
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
36
diff
changeset
|
100 |
36
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
101 Configuration |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
102 ======================================================= |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
103 |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
104 The extension can be configured using ``[all_paths]`` section of your |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
105 global (``~/.hgrc``) or repository-level (``.hg/hgrc``) config file:: |
10
62880e909417
README updates after changes
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
5
diff
changeset
|
106 |
36
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
107 [all_paths] |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
108 prioritize = platon department |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
109 ignore = bitbucket production |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
110 group.publish = github bitbucket |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
111 group.backup = homebackup awsbackup |
10
62880e909417
README updates after changes
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
5
diff
changeset
|
112 |
36
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
113 ``prioritize`` impacts the order, defines paths which are to be |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
114 handled first (if present). This is mostly useful for ``pullall`` |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
115 where pulling from local fast computer before pulling from BitBucket |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
116 server means saving some time and traffic. So:: |
13
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
117 |
36
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
118 prioritize = platon department |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
119 |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
120 means: if path named ``platon`` is present, handle it first, then |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
121 path named ``department``, only then follow to other paths. |
13
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
122 |
36
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
123 ``ignore`` lists paths which should be ignored, those remotes will |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
124 be skipped. So:: |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
125 |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
126 ignore = bitbucket production |
13
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
127 |
36
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
128 means that ``hg pullall`` or ``hg pushall`` should not use |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
129 ``bitbucket`` path (in my case because this is HTTP remote, and I have |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
130 also preferable ``bitssh``configured), and ``production`` path (as |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
131 there I prefer to pull and push only on specific demand). |
13
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
132 |
36
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
133 Both those settings impact only *default* commands (those run |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
134 without ``-g GROUP`` option). In case of groups items are processed |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
135 in the order they are specified in group definition. |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
136 |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
137 ``group.«NAME»`` define group for ``-g «NAME»`` as described earlier. |
c27e23a3509c
Initial work on configuration
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
30
diff
changeset
|
138 |
13
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
139 |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
140 Installation |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
141 ======================================================= |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
142 |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
143 From PyPi |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
144 -------------------- |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
145 |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
146 If you have working ``pip`` or ``easy_install``:: |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
147 |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
148 pip install --user mercurial_all_paths |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
149 |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
150 or maybe:: |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
151 |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
152 sudo pip install mercurial_all_paths |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
153 |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
154 Then activate by:: |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
155 |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
156 [extensions] |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
157 mercurial_all_paths = |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
158 |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
159 To upgrade, repeat the same command with ``--upgrade`` option, for |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
160 example:: |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
161 |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
162 pip install --user --upgrade mercurial_all_paths |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
163 |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
164 From source |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
165 ------------------------------------------------------- |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
166 |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
167 Clone this repository:: |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
168 |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
169 cd ~/sources |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
170 hg clone https://bitbucket.org/Mekk/mercurial-all_paths/ |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
171 |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
172 either:: |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
173 |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
174 pip install --user -e mercurial-all_paths |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
175 |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
176 and activate as above, or just activate by full path:: |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
177 |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
178 [extensions] |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
179 mercurial_path_pattern = ~/sources/mercurial-path_pattern/mercurial_path_pattern.py |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
180 |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
181 To upgrade, pull and update. |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
182 |
16 | 183 History |
184 ======================================================= | |
185 | |
186 See `HISTORY.txt`_ | |
187 | |
30
3f8c4b4a5cc6
README fixes after upstream merge (up-to-date info about two repos and
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
29
diff
changeset
|
188 Development |
13
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
189 ======================================================= |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
190 |
30
3f8c4b4a5cc6
README fixes after upstream merge (up-to-date info about two repos and
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
29
diff
changeset
|
191 Main extension repository, maintained by Ludovic Chabant, is available |
3f8c4b4a5cc6
README fixes after upstream merge (up-to-date info about two repos and
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
29
diff
changeset
|
192 at: |
3f8c4b4a5cc6
README fixes after upstream merge (up-to-date info about two repos and
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
29
diff
changeset
|
193 |
3f8c4b4a5cc6
README fixes after upstream merge (up-to-date info about two repos and
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
29
diff
changeset
|
194 https://bitbucket.org/ludovicchabant/allpaths |
3f8c4b4a5cc6
README fixes after upstream merge (up-to-date info about two repos and
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
29
diff
changeset
|
195 |
3f8c4b4a5cc6
README fixes after upstream merge (up-to-date info about two repos and
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
29
diff
changeset
|
196 Fork by Marcin Kasperski, which is usually in sync, but at times may |
3f8c4b4a5cc6
README fixes after upstream merge (up-to-date info about two repos and
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
29
diff
changeset
|
197 contain some not-yet merged changes, is available at: |
13
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
198 |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
199 http://bitbucket.org/Mekk/mercurial-all_paths/ |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
200 |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
201 Additional notes |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
202 ======================================================= |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
203 |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
204 Information about this extension is also available |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
205 on Mercurial Wiki: http://mercurial.selenic.com/wiki/AllPathsExtension |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
206 |
8cca585b11cc
Module renamed to mercurial_all_paths for possible pypi installation.
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
10
diff
changeset
|
207 |
22
7bfb45910b19
Two more readme fixes
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
18
diff
changeset
|
208 .. _Path Pattern: https://bitbucket.org/Mekk/mercurial-path_pattern/ |
7bfb45910b19
Two more readme fixes
Marcin Kasperski <Marcin.Kasperski@mekk.waw.pl>
parents:
18
diff
changeset
|
209 .. _HISTORY.txt: http://bitbucket.org/Mekk/mercurial-all_paths/src/tip/HISTORY.txt |
53 | 210 |
211 .. |drone-badge| | |
212 image:: https://drone.io/bitbucket.org/Mekk/mercurial-all_paths/status.png | |
213 :target: https://drone.io/bitbucket.org/Mekk/mercurial-all_paths/latest | |
214 :align: middle |