Mercurial > hg
view tests/testlib/ext-stream-clone-steps.py @ 47545:fa18a3bc40e8
dirstate-item: use the properties in largefiles
I am now sure what large file is doing with then, but at least it is no longer
using the tuple API to access data.
Differential Revision: https://phab.mercurial-scm.org/D10990
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 05 Jul 2021 06:27:26 +0200 |
parents | faa43f09ad98 |
children | 6000f5b25c9b |
line wrap: on
line source
from __future__ import absolute_import from mercurial import ( encoding, extensions, streamclone, testing, ) WALKED_FILE_1 = encoding.environ[b'HG_TEST_STREAM_WALKED_FILE_1'] WALKED_FILE_2 = encoding.environ[b'HG_TEST_STREAM_WALKED_FILE_2'] def _test_sync_point_walk_1(orig, repo): testing.write_file(WALKED_FILE_1) def _test_sync_point_walk_2(orig, repo): assert repo._currentlock(repo._lockref) is None testing.wait_file(WALKED_FILE_2) def uisetup(ui): extensions.wrapfunction( streamclone, '_test_sync_point_walk_1', _test_sync_point_walk_1 ) extensions.wrapfunction( streamclone, '_test_sync_point_walk_2', _test_sync_point_walk_2 )