##// END OF EJS Templates
share: drop experimental label...
Martin Geisler -
r10798:e46c19c5 stable
parent child Browse files
Show More
@@ -1,37 +1,37
1 # Copyright 2006, 2007 Matt Mackall <mpm@selenic.com>
1 # Copyright 2006, 2007 Matt Mackall <mpm@selenic.com>
2 #
2 #
3 # This software may be used and distributed according to the terms of the
3 # This software may be used and distributed according to the terms of the
4 # GNU General Public License version 2 or any later version.
4 # GNU General Public License version 2 or any later version.
5
5
6 '''share a common history between several working directories'''
6 '''share a common history between several working directories'''
7
7
8 from mercurial.i18n import _
8 from mercurial.i18n import _
9 from mercurial import hg, commands
9 from mercurial import hg, commands
10
10
11 def share(ui, source, dest=None, noupdate=False):
11 def share(ui, source, dest=None, noupdate=False):
12 """create a new shared repository (experimental)
12 """create a new shared repository
13
13
14 Initialize a new repository and working directory that shares its
14 Initialize a new repository and working directory that shares its
15 history with another repository.
15 history with another repository.
16
16
17 NOTE: using rollback or extensions that destroy/modify history
17 NOTE: using rollback or extensions that destroy/modify history
18 (mq, rebase, etc.) can cause considerable confusion with shared
18 (mq, rebase, etc.) can cause considerable confusion with shared
19 clones. In particular, if two shared clones are both updated to
19 clones. In particular, if two shared clones are both updated to
20 the same changeset, and one of them destroys that changeset with
20 the same changeset, and one of them destroys that changeset with
21 rollback, the other clone will suddenly stop working: all
21 rollback, the other clone will suddenly stop working: all
22 operations will fail with "abort: working directory has unknown
22 operations will fail with "abort: working directory has unknown
23 parent". The only known workaround is to use debugsetparents on
23 parent". The only known workaround is to use debugsetparents on
24 the broken clone to reset it to a changeset that still exists
24 the broken clone to reset it to a changeset that still exists
25 (e.g. tip).
25 (e.g. tip).
26 """
26 """
27
27
28 return hg.share(ui, source, dest, not noupdate)
28 return hg.share(ui, source, dest, not noupdate)
29
29
30 cmdtable = {
30 cmdtable = {
31 "share":
31 "share":
32 (share,
32 (share,
33 [('U', 'noupdate', None, _('do not create a working copy'))],
33 [('U', 'noupdate', None, _('do not create a working copy'))],
34 _('[-U] SOURCE [DEST]')),
34 _('[-U] SOURCE [DEST]')),
35 }
35 }
36
36
37 commands.norepo += " share"
37 commands.norepo += " share"
General Comments 0
You need to be logged in to leave comments. Login now