##// END OF EJS Templates
util: do not recurse in makedirs if name is '' (issue2528)
Nicolas Dumazet -
r13053:2649be11 stable
parent child Browse files
Show More
@@ -841,7 +841,7 b' def makedirs(name, mode=None):'
841 except OSError, err:
841 except OSError, err:
842 if err.errno == errno.EEXIST:
842 if err.errno == errno.EEXIST:
843 return
843 return
844 if err.errno != errno.ENOENT:
844 if not name or err.errno != errno.ENOENT:
845 raise
845 raise
846 parent = os.path.abspath(os.path.dirname(name))
846 parent = os.path.abspath(os.path.dirname(name))
847 makedirs(parent, mode)
847 makedirs(parent, mode)
@@ -399,6 +399,13 b' Direct clone from bundle (all-history)'
399
399
400 $ rm -r full-clone
400 $ rm -r full-clone
401
401
402 When cloning from a non-copiable repository into '', do not
403 recurse infinitely (issue 2528)
404
405 $ hg clone full.hg ''
406 abort: No such file or directory
407 [255]
408
402 test for http://mercurial.selenic.com/bts/issue216
409 test for http://mercurial.selenic.com/bts/issue216
403
410
404 Unbundle incremental bundles into fresh empty in one go
411 Unbundle incremental bundles into fresh empty in one go
General Comments 0
You need to be logged in to leave comments. Login now