Mercurial > hg
comparison tests/run-tests.py @ 47312:7ea39d633cf3
docket: move the uid logic in the `revlogutils.docket` module
We want to use it for revlog-v2 (& Co), it seems more logical to have the logic
lives inside the `docket` file than the `nodemap` file.
Differential Revision: https://phab.mercurial-scm.org/D10755
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 19 May 2021 19:57:55 +0200 |
parents | 9a3aa54774ff |
children | 81d70de39c7e |
comparison
equal
deleted
inserted
replaced
47311:5bc6d2fc1cfc | 47312:7ea39d633cf3 |
---|---|
1384 | 1384 |
1385 env = os.environ.copy() | 1385 env = os.environ.copy() |
1386 env['PYTHONUSERBASE'] = sysconfig.get_config_var('userbase') or '' | 1386 env['PYTHONUSERBASE'] = sysconfig.get_config_var('userbase') or '' |
1387 env['HGEMITWARNINGS'] = '1' | 1387 env['HGEMITWARNINGS'] = '1' |
1388 env['TESTTMP'] = _bytes2sys(self._testtmp) | 1388 env['TESTTMP'] = _bytes2sys(self._testtmp) |
1389 docket_id_file = os.path.join(_bytes2sys(self._testtmp), 'DOCKETID') | 1389 uid_file = os.path.join(_bytes2sys(self._testtmp), 'UID') |
1390 env['HGTEST_DOCKETIDFILE'] = docket_id_file | 1390 env['HGTEST_UUIDFILE'] = uid_file |
1391 env['TESTNAME'] = self.name | 1391 env['TESTNAME'] = self.name |
1392 env['HOME'] = _bytes2sys(self._testtmp) | 1392 env['HOME'] = _bytes2sys(self._testtmp) |
1393 if os.name == 'nt': | 1393 if os.name == 'nt': |
1394 env['REALUSERPROFILE'] = env['USERPROFILE'] | 1394 env['REALUSERPROFILE'] = env['USERPROFILE'] |
1395 # py3.8+ ignores HOME: https://bugs.python.org/issue36264 | 1395 # py3.8+ ignores HOME: https://bugs.python.org/issue36264 |