Mercurial > public > mercurial-scm > hg-stable
diff hgext/shelve.py @ 20960:8e5b21ce8ee9
shelve: introduce secret option for using fixed date for temporary commit
Using a fixed date makes hashes stable and makes debugging simpler. The date
and hashes of this changeset are normally not exposed.
author | Mads Kiilerich <madski@unity3d.com> |
---|---|
date | Mon, 07 Apr 2014 23:10:20 +0200 |
parents | df33c9014430 |
children | 1df99f1ea28d |
line wrap: on
line diff
--- a/hgext/shelve.py Mon Apr 07 23:10:20 2014 +0200 +++ b/hgext/shelve.py Mon Apr 07 23:10:20 2014 +0200 @@ -458,7 +458,9 @@ ('c', 'continue', None, _('continue an incomplete unshelve operation')), ('', 'keep', None, - _('keep shelve after unshelving'))], + _('keep shelve after unshelving')), + ('', 'date', '', + _('set date for temporary commits (DEPRECATED)'), _('DATE'))], _('hg unshelve [SHELVED]')) def unshelve(ui, repo, *shelved, **opts): """restore a shelved change to the working directory @@ -553,6 +555,7 @@ tempopts = {} tempopts['message'] = "pending changes temporary commit" + tempopts['date'] = opts.get('date') ui.quiet = True node = cmdutil.commit(ui, repo, commitfunc, [], tempopts) tmpwctx = repo[node]