mercurial/commands.py
changeset 559 bf9d55ed67f6
parent 555 39a1cfb03ebd
child 561 cdddf4652aec
equal deleted inserted replaced
558:0ceea19182a9 559:bf9d55ed67f6
   297 
   297 
   298     link = 0
   298     link = 0
   299     if not (source.startswith("http://") or
   299     if not (source.startswith("http://") or
   300             source.startswith("hg://") or
   300             source.startswith("hg://") or
   301             source.startswith("old-http://")):
   301             source.startswith("old-http://")):
       
   302         source = os.path.abspath(source)
   302         d1 = os.stat(dest).st_dev
   303         d1 = os.stat(dest).st_dev
   303         d2 = os.stat(source).st_dev
   304         d2 = os.stat(source).st_dev
   304         if d1 == d2: link = 1
   305         if d1 == d2: link = 1
   305 
   306 
   306     if link:
   307     if link: