comparison mercurial/util.py @ 43714:f0bee3b1b847

i18n: get datapath directly from resourceutil The new resourceutil module is lower in the dependency graph, so we can depend directly on it and won't have to depend on the util module to inject the datapath. Differential Revision: https://phab.mercurial-scm.org/D7435
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 14 Nov 2019 12:41:33 -0800
parents 9fb85668ee15
children 5be909dbe385
comparison
equal deleted inserted replaced
43713:9fb85668ee15 43714:f0bee3b1b847
1822 b.reverse() 1822 b.reverse()
1823 return pycompat.ossep.join(([b'..'] * len(a)) + b) or b'.' 1823 return pycompat.ossep.join(([b'..'] * len(a)) + b) or b'.'
1824 1824
1825 1825
1826 datapath = resourceutil.datapath 1826 datapath = resourceutil.datapath
1827 i18n.setdatapath(datapath)
1828 1827
1829 1828
1830 def checksignature(func): 1829 def checksignature(func):
1831 '''wrap a function with code to check for calling errors''' 1830 '''wrap a function with code to check for calling errors'''
1832 1831