Mercurial > hg
view tests/svnurlof.py @ 47226:19d4802cb304
sidedata: add a 'side-data' repository feature and use it
Most code don't really care how sidedata support is added, but it needs to know
if it is present. To achieve this. we use the `repo.features` attributes with a
new dedicated features".
Having such centralised information is more robust and will help us to remove the
sidedata requirements in a later changesets.
Differential Revision: https://phab.mercurial-scm.org/D10617
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 03 May 2021 12:29:52 +0200 |
parents | 2372284d9457 |
children | 6000f5b25c9b |
line wrap: on
line source
from __future__ import absolute_import, print_function import sys from mercurial import ( pycompat, util, ) def main(argv): enc = util.urlreq.quote(pycompat.sysbytes(argv[1])) if pycompat.iswindows: fmt = 'file:///%s' else: fmt = 'file://%s' print(fmt % pycompat.sysstr(enc)) if __name__ == '__main__': main(sys.argv)