Mercurial > public > mercurial-scm > hg
comparison mercurial/revlog.py @ 43038:7bb5a2465501
revlog: add the appropriate flag is sidedata are passed to `addrevision`
If we need to store sidedata, we need the flag to be set and the associated
processing to be called.
Differential Revision: https://phab.mercurial-scm.org/D6894
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 03 Sep 2019 23:45:38 +0200 |
parents | 142deb539ccf |
children | 7902001aaf41 |
comparison
equal
deleted
inserted
replaced
43037:142deb539ccf | 43038:7bb5a2465501 |
---|---|
1863 sidedata = {} | 1863 sidedata = {} |
1864 elif not self.hassidedata: | 1864 elif not self.hassidedata: |
1865 raise error.ProgrammingError( | 1865 raise error.ProgrammingError( |
1866 _("trying to add sidedata to a revlog who don't support them") | 1866 _("trying to add sidedata to a revlog who don't support them") |
1867 ) | 1867 ) |
1868 else: | |
1869 flags |= REVIDX_SIDEDATA | |
1868 | 1870 |
1869 if flags: | 1871 if flags: |
1870 node = node or self.hash(text, p1, p2) | 1872 node = node or self.hash(text, p1, p2) |
1871 | 1873 |
1872 rawtext, validatehash = flagutil.processflagswrite(self, text, flags, | 1874 rawtext, validatehash = flagutil.processflagswrite(self, text, flags, |