Subversion shared repository under both Windows and Linux?
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Subversion shared repository under both Windows and Linux?
I have a Window/Linux dual boot laptop. I was wondering if I can install subversion on both platform and have it access the same partition (probably on Fat32).
I don't seemed to see an answer on this group about this. Has anyone tried it?
Originally Posted by www.catb.org/esr/faqs/smart-questions.html
Q: Can I convert an AcmeCorp document into a TeX file using the Bass-o-matic file converter?
A: Try it and see. If you did that, you'd learn the answer.
Here's the slightly longer version: try it and see. My guess is that there'll be no problems. The only potential for problems, AFAICT, is that FAT32 is a shit file system and svn won't work with it--but I don't think this is the case.
The answer is apparently a flat no. Berkley DB are not compatible across platforms. If you use the Linux and Windows to access the same DB, you'll get data corruption errors.
Update: Versions of Subversion 1.1 or later can use a flat file repository name FSFS. Version 1.2 or later apparently use FSFS by default. One advantage of FSFS is that you should be able to share the repository between Linux and Windows.
Unfortunately, when I tried this on a fat32 partition, I get:
svn: Can't chmod '/media/hda3/dual/duality/db/transactions/9-1.txn/rev': Operation not permitted
This only happen on Linux. Something in Subversion is apparently attempting to perform a chmod on a fat32 volume (which does absoluately nothing on a fat32). Running as root apparently bypass the problem but is not a geat workaround.
Idea: if you're not accessing the repository concurrently, you could copy it to an ext2 partition, do your hacking, then copy it back to the fat32 partition. Clunky, but better than nothing.
The error message is rather deceptive. It would appear that svn is attempting to chmod on a vfat volume and failed because vfat doesn't really support permissions. What is really happening is that it is attempting to chmod the vfat volume, which is owned by root. This of course fails because yiou can't chmod a root unless you are root. This is true even if you have read and write permission to the vfat volume. The failure is not because svn does not have write permission to the vfat volume, it's because it does not have ownership of the vfat.
To get it to work, one mount it as yourself. Example:
> id paulsiu
> 1025
As root, mount the vfat drive as:
> mount /dev/hda2 /mnt/hda2 -ouid=1025
Once the drive is "owned" by you, the chmod error goes away and you can use svn properly.
Anyone know how I can set up fstab to mount a file under the user's uid? I could set it to uid=myid, but then the vfat volume will be owned by me for everyone else on the system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.