Mercurial > public > mercurial-scm > hg
diff hgext/share.py @ 8807:8bf6eb68ddaf
share: allow dest to default to the basename of source
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sat, 13 Jun 2009 18:16:44 -0500 |
parents | 28eaf6f8abce |
children | e872ef2e6758 |
line wrap: on
line diff
--- a/hgext/share.py Sat Jun 13 18:08:51 2009 -0500 +++ b/hgext/share.py Sat Jun 13 18:16:44 2009 -0500 @@ -9,7 +9,7 @@ from mercurial.i18n import _ from mercurial import hg, commands -def share(ui, source, dest, noupdate=False): +def share(ui, source, dest=None, noupdate=False): """create a new shared repository (experimental) Initialize a new repository and working directory that shares its @@ -25,7 +25,7 @@ "share": (share, [('U', 'noupdate', None, _('do not create a working copy'))], - _('[-U] SOURCE DEST')), + _('[-U] SOURCE [DEST]')), } commands.norepo += " share"