mercurial/util.py
changeset 47417 9ea525216edb
parent 47400 9b841267253c
child 47445 d756fc11cfb9
equal deleted inserted replaced
47416:1c7f3d911d0f 47417:9ea525216edb
  2007         settopic()
  2007         settopic()
  2008 
  2008 
  2009         if hardlink:
  2009         if hardlink:
  2010             try:
  2010             try:
  2011                 oslink(src, dst)
  2011                 oslink(src, dst)
  2012             except (IOError, OSError):
  2012             except (IOError, OSError) as exc:
  2013                 hardlink = False
  2013                 if exc.errno != errno.EEXIST:
       
  2014                     hardlink = False
       
  2015                 # XXX maybe try to relink if the file exist ?
  2014                 shutil.copy(src, dst)
  2016                 shutil.copy(src, dst)
  2015         else:
  2017         else:
  2016             shutil.copy(src, dst)
  2018             shutil.copy(src, dst)
  2017         num += 1
  2019         num += 1
  2018         if progress:
  2020         if progress: