##// END OF EJS Templates
share: define norepo in command decorator
Gregory Szorc -
r21772:5a4d1a6c default
parent child Browse files
Show More
@@ -6,7 +6,7 b''
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 cmdutil, hg, commands, util
9 from mercurial import cmdutil, hg, util
10
10
11 cmdtable = {}
11 cmdtable = {}
12 command = cmdutil.command(cmdtable)
12 command = cmdutil.command(cmdtable)
@@ -14,7 +14,8 b" testedwith = 'internal'"
14
14
15 @command('share',
15 @command('share',
16 [('U', 'noupdate', None, _('do not create a working copy'))],
16 [('U', 'noupdate', None, _('do not create a working copy'))],
17 _('[-U] SOURCE [DEST]'))
17 _('[-U] SOURCE [DEST]'),
18 norepo=True)
18 def share(ui, source, dest=None, noupdate=False):
19 def share(ui, source, dest=None, noupdate=False):
19 """create a new shared repository
20 """create a new shared repository
20
21
@@ -66,5 +67,3 b' def unshare(ui, repo):'
66
67
67 # update store, spath, sopener and sjoin of repo
68 # update store, spath, sopener and sjoin of repo
68 repo.unfiltered().__init__(repo.baseui, repo.root)
69 repo.unfiltered().__init__(repo.baseui, repo.root)
69
70 commands.norepo += " share"
General Comments 0
You need to be logged in to leave comments. Login now