Show More
@@ -329,15 +329,25 b' def filteredhash(repo, maxrev):' | |||||
329 | key = s.digest() |
|
329 | key = s.digest() | |
330 | return key |
|
330 | return key | |
331 |
|
331 | |||
|
332 | def _deprecated(old, new, func): | |||
|
333 | msg = ('class at mercurial.scmutil.%s moved to mercurial.vfs.%s' | |||
|
334 | % (old, new)) | |||
|
335 | def wrapper(*args, **kwargs): | |||
|
336 | util.nouideprecwarn(msg, '4.2') | |||
|
337 | return func(*args, **kwargs) | |||
|
338 | return wrapper | |||
|
339 | ||||
332 | # compatibility layer since all 'vfs' code moved to 'mercurial.vfs' |
|
340 | # compatibility layer since all 'vfs' code moved to 'mercurial.vfs' | |
333 | # |
|
341 | # | |
334 | # This is hard to instal deprecation warning to this since we do not have |
|
342 | # This is hard to instal deprecation warning to this since we do not have | |
335 | # access to a 'ui' object. |
|
343 | # access to a 'ui' object. | |
336 |
opener = vfs |
|
344 | opener = _deprecated('opener', 'vfs', vfsmod.vfs) | |
337 | filteropener = filtervfs = vfsmod.filtervfs |
|
345 | vfs = _deprecated('vfs', 'vfs', vfsmod.vfs) | |
338 | abstractvfs = vfsmod.abstractvfs |
|
346 | filteropener = _deprecated('filteropener', 'filtervfs', vfsmod.filtervfs) | |
339 | readonlyvfs = vfsmod.readonlyvfs |
|
347 | filtervfs = _deprecated('filtervfs', 'filtervfs', vfsmod.filtervfs) | |
340 | auditvfs = vfsmod.auditvfs |
|
348 | abstractvfs = _deprecated('abstractvfs', 'abstractvfs', vfsmod.abstractvfs) | |
|
349 | readonlyvfs = _deprecated('readonlyvfs', 'readonlyvfs', vfsmod.readonlyvfs) | |||
|
350 | auditvfs = _deprecated('auditvfs', 'auditvfs', vfsmod.auditvfs) | |||
341 | checkambigatclosing = vfsmod.checkambigatclosing |
|
351 | checkambigatclosing = vfsmod.checkambigatclosing | |
342 |
|
352 | |||
343 | def walkrepos(path, followsym=False, seen_dirs=None, recurse=False): |
|
353 | def walkrepos(path, followsym=False, seen_dirs=None, recurse=False): | |
@@ -960,4 +970,3 b' class simplekeyvaluefile(object):' | |||||
960 | lines.append("%s=%s\n" % (k, v)) |
|
970 | lines.append("%s=%s\n" % (k, v)) | |
961 | with self.vfs(self.path, mode='wb', atomictemp=True) as fp: |
|
971 | with self.vfs(self.path, mode='wb', atomictemp=True) as fp: | |
962 | fp.write(''.join(lines)) |
|
972 | fp.write(''.join(lines)) | |
963 |
|
General Comments 0
You need to be logged in to leave comments.
Login now