Mercurial > hgrepos > DevTools > mercurial-extensions
changeset 208:99a1f7a1aec8
Always create a Timestamps database on commit
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Mon, 15 Oct 2018 09:40:37 +0200 |
| parents | 1d1f2d7de448 |
| children | b078d3a02205 |
| files | extensions/timestamps.py |
| diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/extensions/timestamps.py Sun Oct 14 22:14:12 2018 +0200 +++ b/extensions/timestamps.py Mon Oct 15 09:40:37 2018 +0200 @@ -687,6 +687,9 @@ if tsmatch is not None: self.ui.debug("TimestampedRepo.commit():" " handling timestamps\n") + ts = Timestamps.from_ctx(wctx, self.ui) + if ts is None: + ts = Timestamps.create(self.ui) # # match: "hg ci" -> alwaysmatcher # "hg ci file1 ... -> patternmatcher with the files
