Re: [fossil-users] Is there a way to specify paths relative to checkout's root?
On Thu, Sep 7, 2017 at 7:20 PM, Tony Papadimitriouwrote: > OK, thanks. > > But, what would be wrong with using / which is closer semantically, and > compatible to both Linux and Windows path syntax? > Just to avoid potential ambiguity and user confusion (because Unix users expect / to mean something very specific, having nothing at all to do with fossil). My concern is that using / as the prefix would eventually step on someone's toes, either confusing them or downright breaking some semantics (though i admittedly don't have an example which would break something). svn uses the ^ prefix as an alias for SVNROOT, so maybe that would be a good choice. i don't recall off hand whether ^ is a legal filename character for Fossil. The : would be a character which cannot possibly be used in fossil filenames names up to this point, making it safe for such usage. -- - stephan beal http://wanderinghorse.net/home/stephan/ "Freedom is sloppy. But since tyranny's the only guaranteed byproduct of those who insist on a perfect world, freedom will have to do." -- Bigby Wolf ___ 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] Is there a way to specify paths relative to checkout's root?
OK, thanks. But, what would be wrong with using / which is closer semantically, and compatible to both Linux and Windows path syntax? From: Stephan Beal Sent: Thursday, September 07, 2017 7:46 PM To: fossil-users Subject: Re: [fossil-users] Is there a way to specify paths relative to checkout's root? There's not currently, and if someone wants to implement it i would suggest : as a prefix, since fossil does not allow : in file names (for Windows compatibility). - stephan Sent from a mobile device, possibly from bed. Please excuse brevity, typos, and top-posting. On Sep 7, 2017 18:43, "Tony Papadimitriou"wrote: For example, assuming a checkout tree like this: lib/file a/b/c/d/e/f/g/h/j/file and while inside the j subdirectory, I want to refer to lib/file by doing something like: fossil tim –p /lib/file instead of fossil tim –p ../../../../../../../../lib/file (and not sure if I got the number of ../ right, see the problem?) Similar to how one uses ~ to refer to home path in Linux, although I’m interested for this to work in Windows also. I tried both ~ and / with no success. (I guess / would be the obvious way to do this as it’s the checkout’s logical root.) Is there a way to do this? Thanks. ___ 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
Re: [fossil-users] Is there a way to specify paths relative to checkout's root?
There's not currently, and if someone wants to implement it i would suggest : as a prefix, since fossil does not allow : in file names (for Windows compatibility). - stephan Sent from a mobile device, possibly from bed. Please excuse brevity, typos, and top-posting. On Sep 7, 2017 18:43, "Tony Papadimitriou"wrote: > For example, assuming a checkout tree like this: > > lib/file > a/b/c/d/e/f/g/h/j/file > > and while inside the j subdirectory, I want to refer to lib/file by doing > something like: > > fossil tim –p /lib/file > > instead of > > fossil tim –p ../../../../../../../../lib/file > > (and not sure if I got the number of ../ right, see the problem?) > > Similar to how one uses ~ to refer to home path in Linux, although I’m > interested for this to work in Windows also. > > I tried both ~ and / with no success. > (I guess / would be the obvious way to do this as it’s the checkout’s > logical root.) > > Is there a way to do this? > > Thanks. > > ___ > 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