Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

After mounting using sshfs I cannot commit my changes using subversion

Tags:

svn

sshfs

local machine: Fedora 13 Subversion: 1.6.9

remote machine:
CentSO 5.3
subversion 1.4.2

I have a project which is on the remote machine:

[email protected]:projects/ssd1

I have mounted this on my local machine:

sshfs [email protected]:projects/ssd1 /home/jbloggs/projects/mnt/ssd1

Everything mounts ok. So I open my project using GNU Emacs 23.2.1. When I want to comment my changes in emacs I get the following error:

can't move /home/jbloggs/projects/mnt/ssd1/.svn/tmp/entries to /home/jbloggs/mnt/ssd1/.svn/entries: Operation not permitted

Does anyone know of any way I can resolve this issue?

many thanks for any advice,

like image 424
ant2009 Avatar asked Nov 03 '25 02:11

ant2009


2 Answers

I think the issue is with sshfs, rather than Subversion. The short answer is: try the "rename workaround" option:

 sshfs -o workaround=rename ...

If that doesn't help see if you can rename the file manually using the Linux mv command (not the SVN one). If not, can you rename it using SFTP (ie. without using sshfs)? See http://www.mail-archive.com/[email protected]/msg00559.html for a more detailed discussion.

like image 127
EMP Avatar answered Nov 04 '25 20:11

EMP


I think what may be going on here is that you checked out the working copy on the remote machine, and it checked out to one path, but on the mounted drive, you're working under a different path.

How different are the two paths on the local and remote machine? Would it be possible for you to make the paths identical?

I would unmount the drive, remount it with the exact same path as the path on the remote machine, do an svn cleanup, and try to commit then.

like image 23
Travis Avatar answered Nov 04 '25 19:11

Travis



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!