Note that only those changes done in tracked files will be considered
so you may want to to hg add untracked files with desired changes.
if not s.haschanges (repo, pats, opts):
ui.status(_('patch %s shelved\n' % (s.currentpatch)))
def unshelve(ui, repo, name = None, **opts):
"""applies a patch from the attic to the working copy"""
force = opts.get('force')
if s.applied and not force:
def listattic(ui, repo, **opts):
"""lists the available patches in the attic"""