Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 33251:a5cb2e4460de
transaction: track new obsmarkers in the 'changes' mapping
The obsstore collaborate with transaction to make sure we track all the
obsmarkers added during a transaction. This will be useful for various usages:
hooks, caches, better output, etc.
This is the seconds kind of data added to tr.changes (first one was added revisions)
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 27 Jun 2017 02:45:09 +0200 |
parents | 4d5d493ea54a |
children | 4ea0b7a613f9 |
comparison
equal
deleted
inserted
replaced
33250:bbc57a7e8823 | 33251:a5cb2e4460de |
---|---|
1081 aftertrans(renames), | 1081 aftertrans(renames), |
1082 self.store.createmode, | 1082 self.store.createmode, |
1083 validator=validate, | 1083 validator=validate, |
1084 releasefn=releasefn) | 1084 releasefn=releasefn) |
1085 tr.changes['revs'] = set() | 1085 tr.changes['revs'] = set() |
1086 tr.changes['obsmarkers'] = set() | |
1086 | 1087 |
1087 tr.hookargs['txnid'] = txnid | 1088 tr.hookargs['txnid'] = txnid |
1088 # note: writing the fncache only during finalize mean that the file is | 1089 # note: writing the fncache only during finalize mean that the file is |
1089 # outdated when running hooks. As fncache is used for streaming clone, | 1090 # outdated when running hooks. As fncache is used for streaming clone, |
1090 # this is not expected to break anything that happen during the hooks. | 1091 # this is not expected to break anything that happen during the hooks. |