Mercurial > public > mercurial-scm > hg
comparison mercurial/util.py @ 1591:5a3229cf1492
do not copy atime and mtime in util.copyfiles
it is unsupported on some fs (vfat) and we don't need to copy
it one clone anyway
author | Benoit Boissinot <benoit.boissinot@ens-lyon.org> |
---|---|
date | Fri, 16 Dec 2005 01:32:44 -0600 |
parents | d7c4b9bfcc94 |
children | a329e0fda2ae |
comparison
equal
deleted
inserted
replaced
1590:bae3f3f993d6 | 1591:5a3229cf1492 |
---|---|
355 if hardlink: | 355 if hardlink: |
356 try: | 356 try: |
357 os_link(src, dst) | 357 os_link(src, dst) |
358 except: | 358 except: |
359 hardlink = False | 359 hardlink = False |
360 shutil.copy2(src, dst) | 360 shutil.copy(src, dst) |
361 else: | 361 else: |
362 shutil.copy2(src, dst) | 362 shutil.copy(src, dst) |
363 | 363 |
364 def opener(base): | 364 def opener(base): |
365 """ | 365 """ |
366 return a function that opens files relative to base | 366 return a function that opens files relative to base |
367 | 367 |