hgext/convert/common.py
changeset 43503 313e3a279828
parent 43117 8ff1ecfadcd1
child 43506 9f70512ae2cf
equal deleted inserted replaced
43502:c093cc6e6c99 43503:313e3a279828
   491     @propertycache
   491     @propertycache
   492     def argmax(self):
   492     def argmax(self):
   493         # POSIX requires at least 4096 bytes for ARG_MAX
   493         # POSIX requires at least 4096 bytes for ARG_MAX
   494         argmax = 4096
   494         argmax = 4096
   495         try:
   495         try:
   496             argmax = os.sysconf(r"SC_ARG_MAX")
   496             argmax = os.sysconf("SC_ARG_MAX")
   497         except (AttributeError, ValueError):
   497         except (AttributeError, ValueError):
   498             pass
   498             pass
   499 
   499 
   500         # Windows shells impose their own limits on command line length,
   500         # Windows shells impose their own limits on command line length,
   501         # down to 2047 bytes for cmd.exe under Windows NT/2k and 2500 bytes
   501         # down to 2047 bytes for cmd.exe under Windows NT/2k and 2500 bytes