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