##// END OF EJS Templates
clone: cleanup the "cleanup dir" logic used during local clone...
marmoute -
r48209:1c7f3d91 default
parent child Browse files
Show More
@@ -825,6 +825,11 b' def clone('
825 abspath = os.path.abspath(urlutil.urllocalpath(origsource))
825 abspath = os.path.abspath(urlutil.urllocalpath(origsource))
826
826
827 if islocal(dest):
827 if islocal(dest):
828 if os.path.exists(dest):
829 # only clean up directories we create ourselves
830 hgdir = os.path.realpath(os.path.join(dest, b".hg"))
831 cleandir = hgdir
832 else:
828 cleandir = dest
833 cleandir = dest
829
834
830 copy = False
835 copy = False
@@ -855,9 +860,6 b' def clone('
855 hgdir = os.path.realpath(os.path.join(dest, b".hg"))
860 hgdir = os.path.realpath(os.path.join(dest, b".hg"))
856 if not os.path.exists(dest):
861 if not os.path.exists(dest):
857 util.makedirs(dest)
862 util.makedirs(dest)
858 else:
859 # only clean up directories we create ourselves
860 cleandir = hgdir
861 try:
863 try:
862 destpath = hgdir
864 destpath = hgdir
863 util.makedir(destpath, notindexed=True)
865 util.makedir(destpath, notindexed=True)
General Comments 0
You need to be logged in to leave comments. Login now