##// END OF EJS Templates
largefiles: allow to run 'debugupgraderepo' on repo with largefiles...
largefiles: allow to run 'debugupgraderepo' on repo with largefiles The extensions wrap the necessary function to ensure the 'largefiles' requirements won't be dropped. It is now possible to run `hg debugupgraderepo` on a repository with largefiles.

File last commit:

r29485:6a98f940 default
r35304:67b7e39b default
Show More
readlink.py
17 lines | 324 B | text/x-python | PythonLexer
Thomas Arendsen Hein
Use common readlink.py instead of own implementations per test script.
r5683 #!/usr/bin/env python
Pulkit Goyal
py3: make files use absolute_import and print_function...
r29485 from __future__ import absolute_import, print_function
timeless
readlink: use print_function
r29175
Pulkit Goyal
py3: make files use absolute_import and print_function...
r29485 import errno
import os
import sys
Thomas Arendsen Hein
Use common readlink.py instead of own implementations per test script.
r5683
for f in sys.argv[1:]:
try:
timeless
readlink: use print_function
r29175 print(f, '->', os.readlink(f))
Gregory Szorc
global: mass rewrite to use modern exception syntax...
r25660 except OSError as err:
Matt Mackall
many, many trivial check-code fixups
r10282 if err.errno != errno.EINVAL:
raise
timeless
readlink: use print_function
r29175 print(f, '->', f, 'not a symlink')
Thomas Arendsen Hein
Use common readlink.py instead of own implementations per test script.
r5683
sys.exit(0)