Mercurial > hg
changeset 21772:5a4d1a6c605f
share: define norepo in command decorator
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sun, 04 May 2014 22:03:11 -0700 |
parents | 0f3353776038 |
children | 26d2fb899637 |
files | hgext/share.py |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/share.py Sun May 04 22:04:14 2014 -0700 +++ b/hgext/share.py Sun May 04 22:03:11 2014 -0700 @@ -6,7 +6,7 @@ '''share a common history between several working directories''' from mercurial.i18n import _ -from mercurial import cmdutil, hg, commands, util +from mercurial import cmdutil, hg, util cmdtable = {} command = cmdutil.command(cmdtable) @@ -14,7 +14,8 @@ @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 @@ -66,5 +67,3 @@ # update store, spath, sopener and sjoin of repo repo.unfiltered().__init__(repo.baseui, repo.root) - -commands.norepo += " share"