Hello,

Perhaps having fossil manage files outside its own root is not
practical to implement/want, I don't know.

And can be very confusing and dangerous.
I suppose, in that case instead of this reaction:
if I change the name of the directory, I don't get error, but the name of file is transformed:

/test1# fossil add ../opt1/one.txt
ADDED ne.txt
there should be a nice message informing the user about the fact that adding a file from a upper directory is a bad idea.
i think, it would be right to register current behaviour as a bug.

A. Shtine



09.01.2014 13:33, Martin Gagnon пишет:
On Thu, Jan 09, 2014 at 10:45:35AM +0100, Michai Ramakers wrote:
Hello,

On 9 January 2014 09:43, shtine <sht...@runway.lv> wrote:
Hello,
Perhaps the  error is a bit  misleading... Should it be  possible to add
files that are above the root of the open fossil repository?
This would be a nice feature to have. I want to use fossil to manage changes
on linux based VPN Routers. Some of my config files live in /etc , some in
/opt/scripts. It would be nice to be possible to run fossil from something
like /opt/archive. Currently, for my purposes, I can only run it from (/)
root directory which is not so flexible.
Perhaps having fossil manage files outside its own root is not
practical to implement/want, I don't know.

And can be very confusing and dangerous. Imagine working from
  /a/b/c/d/e/f/g/checkoutdir and adding file ../../../../../file.txt.
  Later, one open a checkout in /a/b.  Where file.txt will go ?

Or the file could also goes inside another checkout, a clean in this
other checkout could delete latest change.

   [snip]

Actually, latest version of trunk work for a checkout on '/', which was
not the case before. It is less flexible for you to work on '/' but
could be use. In my case I don't do that on my workstation but on some
headless BSD server where I want to track changes on system
configuration files.


_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to