##// END OF EJS Templates
cleanup: drop vfs compatibility layer in scmutil...
Pierre-Yves David -
r32115:ef966bcf default
parent child Browse files
Show More
@@ -26,7 +26,6 b' from . import ('
26 revsetlang,
26 revsetlang,
27 similar,
27 similar,
28 util,
28 util,
29 vfs as vfsmod,
30 )
29 )
31
30
32 if pycompat.osname == 'nt':
31 if pycompat.osname == 'nt':
@@ -333,27 +332,6 b' def filteredhash(repo, maxrev):'
333 key = s.digest()
332 key = s.digest()
334 return key
333 return key
335
334
336 def _deprecated(old, new, func):
337 msg = ('class at mercurial.scmutil.%s moved to mercurial.vfs.%s'
338 % (old, new))
339 def wrapper(*args, **kwargs):
340 util.nouideprecwarn(msg, '4.2')
341 return func(*args, **kwargs)
342 return wrapper
343
344 # compatibility layer since all 'vfs' code moved to 'mercurial.vfs'
345 #
346 # This is hard to instal deprecation warning to this since we do not have
347 # access to a 'ui' object.
348 opener = _deprecated('opener', 'vfs', vfsmod.vfs)
349 vfs = _deprecated('vfs', 'vfs', vfsmod.vfs)
350 filteropener = _deprecated('filteropener', 'filtervfs', vfsmod.filtervfs)
351 filtervfs = _deprecated('filtervfs', 'filtervfs', vfsmod.filtervfs)
352 abstractvfs = _deprecated('abstractvfs', 'abstractvfs', vfsmod.abstractvfs)
353 readonlyvfs = _deprecated('readonlyvfs', 'readonlyvfs', vfsmod.readonlyvfs)
354 auditvfs = _deprecated('auditvfs', 'auditvfs', vfsmod.auditvfs)
355 checkambigatclosing = vfsmod.checkambigatclosing
356
357 def walkrepos(path, followsym=False, seen_dirs=None, recurse=False):
335 def walkrepos(path, followsym=False, seen_dirs=None, recurse=False):
358 '''yield every hg repository under path, always recursively.
336 '''yield every hg repository under path, always recursively.
359 The recurse flag will only control recursion into repo working dirs'''
337 The recurse flag will only control recursion into repo working dirs'''
General Comments 0
You need to be logged in to leave comments. Login now