Mercurial > hgrepos > DevTools > mercurial-extensions
changeset 367:4aa43c79fbf8
FIX: Do nothing special when repo.commit gets called with "match == None".
When calling :hg:`histedit` the histedit extension code calles repo.commit()
directly without setting a `match` argument. Don't fiddle around with
timestamps in histedit mode.
BUGS: After histedit a :hg:`timestamps --restore` is needed to correct file
timestamps.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Mon, 25 Feb 2019 00:48:16 +0100 |
| parents | 663a09a4cb98 |
| children | 281b0086337c |
| files | extensions/timestamps.py |
| diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/extensions/timestamps.py Tue Feb 19 08:33:23 2019 +0100 +++ b/extensions/timestamps.py Mon Feb 25 00:48:16 2019 +0100 @@ -287,6 +287,13 @@ **kwds) def _ts_commit(self, match): + # + # histedit commits directly without setting a match -> + # cannot amend and/or leave alone + # + if match is None: + return None + wctx = self[None] tsconfmatch = _gen_matcher_from_tsconfig(wctx) if tsconfmatch is not None:
