Issue 2566 clone crashes when target is on different file system

Title clone crashes when target is on different file system
Priority urgent Status unknown
Milestone Resolved in
Superseder Nosy List bf
Assigned To

Created on 2018-02-18.11:14:52 by bf, last changed 2018-02-18.16:50:26 by bf.

msg19895 (view) Author: bf Date: 2018-02-18.11:14:50
What I did is

> darcs clone . /tmp/blabla
WARNING: creating a nested repository.
Copying patches, to get lazy repository hit ctrl-C...
darcs: ./darcs_new25356: renamePath:rename: unsupported operation
(Invalid cross-device link)

It seems darcs is trying to rename a file across a file system boundary.
msg19896 (view) Author: bf Date: 2018-02-18.11:31:14
Strangely, this only happens with

  clone . /tmp/blabla

It works fine when I do

  cd /tmp
  clone ~/src/darcs/whatever blabla
msg19897 (view) Author: bf Date: 2018-02-18.13:09:56
I tracked it down to this patch:

patch 94914596fe8fcfed224f45872aa8851b33d14fc9
Author: 'Ben Franksen <ben.franksen@online.de>'
Date:   Thu Oct 26 19:12:33 CEST 2017
  * refactored creation of new repositories

Will investigate.
msg19899 (view) Author: bf Date: 2018-02-18.16:50:24
We need a way to test commands involving operations between local repos
in different file systems. I have no idea yet how to do that.
Date User Action Args
2018-02-18 11:14:52bfcreate
2018-02-18 11:31:15bfsetmessages: + msg19896
2018-02-18 13:09:58bfsetmessages: + msg19897
2018-02-18 16:50:26bfsetmessages: + msg19899