Comments
Patch
@@ -9,17 +9,18 @@ from mercurial.i18n import _
from mercurial import cmdutil, hg, commands, util
cmdtable = {}
command = cmdutil.command(cmdtable)
testedwith = 'internal'
@command('share',
[('U', 'noupdate', None, _('do not create a working copy'))],
- _('[-U] SOURCE [DEST]'))
+ _('[-U] SOURCE [DEST]'),
+ norepo=True)
def share(ui, source, dest=None, noupdate=False):
"""create a new shared repository
Initialize a new repository and working directory that shares its
history with another repository.
.. note::
@@ -61,10 +62,8 @@ def unshare(ui, repo):
repo.requirements.discard('sharedpath')
repo._writerequirements()
finally:
destlock and destlock.release()
lock and lock.release()
# update store, spath, sopener and sjoin of repo
repo.unfiltered().__init__(repo.baseui, repo.root)
-
-commands.norepo += " share"