Mercurial > hg
diff mercurial/testing/storage.py @ 40430:6a917075535a
storage: also use `deltamode argument` for ifiledata
Now that lower level uses such argument, we can propagate the change to higher
layers.
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Tue, 09 Oct 2018 23:26:35 +0200 |
parents | f1a39128da95 |
children | 22e74b5aa59d |
line wrap: on
line diff
--- a/mercurial/testing/storage.py Tue Oct 09 22:02:01 2018 +0200 +++ b/mercurial/testing/storage.py Tue Oct 09 23:26:35 2018 +0200 @@ -741,7 +741,8 @@ # forceprevious=True forces a delta against the previous revision. # Special case for initial revision. - gen = f.emitrevisions([node0], revisiondata=True, deltaprevious=True) + gen = f.emitrevisions([node0], revisiondata=True, + deltamode=repository.CG_DELTAMODE_PREV) rev = next(gen) self.assertEqual(rev.node, node0) @@ -758,7 +759,7 @@ next(gen) gen = f.emitrevisions([node0, node2], revisiondata=True, - deltaprevious=True) + deltamode=repository.CG_DELTAMODE_PREV) rev = next(gen) self.assertEqual(rev.node, node0)