mercurial/commands.py
changeset 965 a425123e6afe
parent 963 84355e3e4493
child 966 022bcc738389
equal deleted inserted replaced
964:3f37720e7dc7 965:a425123e6afe
   493         ui.setconfig("ui", "ssh", opts['ssh'])
   493         ui.setconfig("ui", "ssh", opts['ssh'])
   494     if opts['remotecmd']:
   494     if opts['remotecmd']:
   495         ui.setconfig("ui", "remotecmd", opts['remotecmd'])
   495         ui.setconfig("ui", "remotecmd", opts['remotecmd'])
   496 
   496 
   497     d = Dircleanup(dest)
   497     d = Dircleanup(dest)
       
   498     source = ui.expandpath(source)
   498     abspath = source
   499     abspath = source
   499     source = ui.expandpath(source)
       
   500     other = hg.repository(ui, source)
   500     other = hg.repository(ui, source)
   501 
   501 
   502     if other.dev() != -1:
   502     if other.dev() != -1:
   503         abspath = os.path.abspath(source)
   503         abspath = os.path.abspath(source)
   504         copyfile = (os.stat(dest).st_dev == other.dev()
   504         copyfile = (os.stat(dest).st_dev == other.dev()