Show More
@@ -1,30 +1,30 b'' | |||
|
1 | 1 | # Copyright 2006, 2007 Matt Mackall <mpm@selenic.com> |
|
2 | 2 | # |
|
3 | 3 | # This software may be used and distributed according to the terms of the |
|
4 | 4 | # GNU General Public License version 2, incorporated herein by reference. |
|
5 | 5 | |
|
6 | 6 | '''share a common history between several working directories''' |
|
7 | 7 | |
|
8 | 8 | from mercurial.i18n import _ |
|
9 | 9 | from mercurial import hg, commands |
|
10 | 10 | |
|
11 | 11 | def share(ui, source, dest=None, noupdate=False): |
|
12 | 12 | """create a new shared repository (experimental) |
|
13 | 13 | |
|
14 |
Initialize a new repository and working directory that shares its |
|
|
15 | with another repository. | |
|
14 | Initialize a new repository and working directory that shares its | |
|
15 | history with another repository. | |
|
16 | 16 | |
|
17 |
NOTE: actions that change history such as rollback or moving the |
|
|
18 | may confuse sharers. | |
|
17 | NOTE: actions that change history such as rollback or moving the | |
|
18 | source may confuse sharers. | |
|
19 | 19 | """ |
|
20 | 20 | |
|
21 | 21 | return hg.share(ui, source, dest, not noupdate) |
|
22 | 22 | |
|
23 | 23 | cmdtable = { |
|
24 | 24 | "share": |
|
25 | 25 | (share, |
|
26 | 26 | [('U', 'noupdate', None, _('do not create a working copy'))], |
|
27 | 27 | _('[-U] SOURCE [DEST]')), |
|
28 | 28 | } |
|
29 | 29 | |
|
30 | 30 | commands.norepo += " share" |
General Comments 0
You need to be logged in to leave comments.
Login now