return cmdutil.commit(ui, repo, shelvefunc, pats, opts)
def shelve(ui, repo, name=None, *pats, **opts):
- '''saves a patch to the attic from the current changes
- and removes them from the working copy'''
+ """saves a patch to the attic from the current changes
+ and removes them from the working copy.
+ Note that only those changes done in tracked files will be considered
+ so you may wanto to hg add untracked files with desired changes.
interactiveshelve(ui, repo, name, pats, opts)
repo.ui.status(_('Patch %s shelved\n' % (s.currentpatch)))
def unshelve(ui, repo, name = None, **opts):
ctivates a patch from the attic"""
+ """aes a patch from the attic"""
if s.applied and not force:
('f', 'force', None, _('force patch over existing changes')),
- _('do not
add or remove, just print output')),
+ _('do not d or remove, print ')),
'delete the patch from the attic while unshelving it ')),
+ _( the patch the attic ing it)),
_('guess renamed files by similarity (0<=s<=100)'))],
_('hg attic-unshelve [-f] [-n] [-s #] [name]'))