Re: [fossil-users] Linux/Windows USB
Hi Martin, Thanks! Your solution is elegant, works and was just what was required. Henk On Fri, Jul 26, 2013 at 4:41 PM, Martin Gagnon eme...@gmail.com wrote: On Fri, Jul 26, 2013 at 10:38:50AM +0200, henk harmsen wrote: At work I have a Windows 7 laptop, at home a Linux Debian system on which I do the real work. No network traffic is allowed but the files may be put on an encrypted USB. So my fossils are on the USB. The problem that I am facing is that the Debian path starts with /media/usb/mydir, whereas in Windows that is G:\mydir. So, fossil status gives : current directory is not within an open checkout. Is there a workaround for this? You could use the distributed nature of fossil and only put the repository on your usb key (the .fossil) and make a clone on your 2 systems. With autosync, everytime you commit or update, you get your change synced on your usb key. Or another alternative, if you are not allowed to have a clone on your system at home, you could open a check on the usb key for your system at home, and make a clone on your windows 7 laptop at work. So that way, you never use a checkout on 2 different system. An advantage of this is that you have some backup of your work, so if you loose you usb or something happens with your laptop, you are safe. -- Martin G. ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Linux/Windows USB
Thanks Andy. This works. In the end i just keep the repository on the USB, make 2 clones and keep one clone on each platform. Henk On Sat, Jul 27, 2013 at 2:46 AM, Andy Bradford amb-fos...@bradfords.org wrote: Thus said Edward Berner on Fri, 26 Jul 2013 16:49:45 -0700: So... try keeping your repository one directory above your checkout and opening it as fossil open ../repo.fossil and see if both platforms are happy with that. This is what one gets using relative paths: $ fossil open ../new.fossil $ f info project-name: unnamed repository: /tmp/new/../new.fossil local-root: /tmp/new/ ... $ f open ./new.fossil $ f info project-name: unnamed repository: /tmp/./new.fossil local-root: /tmp/ ... Andy -- TAI64 timestamp: 400051f3187a ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Linux/Windows USB
Thanks Edward, This works indeed. in the end the solution was to keep only the repository on the usb and create a checkout on each platform. Henk On Sat, Jul 27, 2013 at 1:49 AM, Edward Berner e...@bernerfam.com wrote: On 7/26/2013 1:38 AM, henk harmsen wrote: At work I have a Windows 7 laptop, at home a Linux Debian system on which I do the real work. No network traffic is allowed but the files may be put on an encrypted USB. So my fossils are on the USB. The problem that I am facing is that the Debian path starts with /media/usb/mydir, whereas in Windows that is G:\mydir. So, fossil status gives : current directory is not within an open checkout. Is there a workaround for this? If you open the repository using a relative path I think Fossil will remember the relative path (it used to convert it to an absolute path but that changed some time ago). Also, some aspects of Windows can handle forward-slashes in filenames. So... try keeping your repository one directory above your checkout and opening it as fossil open ../repo.fossil and see if both platforms are happy with that. -- Edward Berner ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
Re: [fossil-users] Linux/Windows USB
Thanks! The solution that was easiest to implement was to keep just the repo on the USB and make checkins on each platform. Henk On Sat, Jul 27, 2013 at 12:21 AM, renework renew...@xs4all.nl wrote: Verzonden vanaf Samsung Mobile Original message From: renework renew...@xs4all.nl Date: To: Fossil SCM user's discussion fossil-users@lists.fossil-scm.org Subject: Re: [fossil-users] Linux/Windows USB Install “mingw and msys and make a mount g:mydir /your/path/on/debian. Original message From: henk harmsen h...@carbonmetrics.com Date: To: fossil-users@lists.fossil-scm.org Subject: [fossil-users] Linux/Windows USB At work I have a Windows 7 laptop, at home a Linux Debian system on which I do the real work. No network traffic is allowed but the files may be put on an encrypted USB. So my fossils are on the USB. The problem that I am facing is that the Debian path starts with /media/usb/mydir, whereas in Windows that is G:\mydir. So, fossil status gives : current directory is not within an open checkout. Is there a workaround for this? Henk ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users ___ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users