Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/commands.py @ 12323:f00953d9533c
subrepo: add support for 'hg archive'
author | Martin Geisler <mg@aragost.com> |
---|---|
date | Mon, 20 Sep 2010 15:46:17 +0200 |
parents | c02e1ed3d407 |
children | 6f0d9d79111f |
comparison
equal
deleted
inserted
replaced
12322:510afb31cf99 | 12323:f00953d9533c |
---|---|
197 prefix = os.path.basename(repo.root) + '-%h' | 197 prefix = os.path.basename(repo.root) + '-%h' |
198 | 198 |
199 prefix = cmdutil.make_filename(repo, prefix, node) | 199 prefix = cmdutil.make_filename(repo, prefix, node) |
200 matchfn = cmdutil.match(repo, [], opts) | 200 matchfn = cmdutil.match(repo, [], opts) |
201 archival.archive(repo, dest, node, kind, not opts.get('no_decode'), | 201 archival.archive(repo, dest, node, kind, not opts.get('no_decode'), |
202 matchfn, prefix) | 202 matchfn, prefix, subrepos=opts.get('subrepos')) |
203 | 203 |
204 def backout(ui, repo, node=None, rev=None, **opts): | 204 def backout(ui, repo, node=None, rev=None, **opts): |
205 '''reverse effect of earlier changeset | 205 '''reverse effect of earlier changeset |
206 | 206 |
207 Commit the backed out changes as a new changeset. The new | 207 Commit the backed out changes as a new changeset. The new |
3961 _('directory prefix for files in archive'), _('PREFIX')), | 3961 _('directory prefix for files in archive'), _('PREFIX')), |
3962 ('r', 'rev', '', | 3962 ('r', 'rev', '', |
3963 _('revision to distribute'), _('REV')), | 3963 _('revision to distribute'), _('REV')), |
3964 ('t', 'type', '', | 3964 ('t', 'type', '', |
3965 _('type of distribution to create'), _('TYPE')), | 3965 _('type of distribution to create'), _('TYPE')), |
3966 ] + walkopts, | 3966 ] + subrepoopts + walkopts, |
3967 _('[OPTION]... DEST')), | 3967 _('[OPTION]... DEST')), |
3968 "backout": | 3968 "backout": |
3969 (backout, | 3969 (backout, |
3970 [('', 'merge', None, | 3970 [('', 'merge', None, |
3971 _('merge with old dirstate parent after backout')), | 3971 _('merge with old dirstate parent after backout')), |