##// END OF EJS Templates
share: wrap docstrings at 70 characters
Martin Geisler -
r9273:4b8b0c12 default
parent child Browse files
Show More
@@ -1,30 +1,30 b''
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, incorporated herein by reference.
4 # GNU General Public License version 2, incorporated herein by reference.
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 (experimental)
13
13
14 Initialize a new repository and working directory that shares its history
14 Initialize a new repository and working directory that shares its
15 with another repository.
15 history with another repository.
16
16
17 NOTE: actions that change history such as rollback or moving the source
17 NOTE: actions that change history such as rollback or moving the
18 may confuse sharers.
18 source may confuse sharers.
19 """
19 """
20
20
21 return hg.share(ui, source, dest, not noupdate)
21 return hg.share(ui, source, dest, not noupdate)
22
22
23 cmdtable = {
23 cmdtable = {
24 "share":
24 "share":
25 (share,
25 (share,
26 [('U', 'noupdate', None, _('do not create a working copy'))],
26 [('U', 'noupdate', None, _('do not create a working copy'))],
27 _('[-U] SOURCE [DEST]')),
27 _('[-U] SOURCE [DEST]')),
28 }
28 }
29
29
30 commands.norepo += " share"
30 commands.norepo += " share"
General Comments 0
You need to be logged in to leave comments. Login now