Le 2012-06-07 à 05:30, Joan Picanyol i Puig <[email protected]> a écrit :

> * Andrew Stuart <[email protected]> [20120531 16:15]:
>> There are source code files and also operating system configuration
>> files.
> 
> I would keep two different repositories. For the second one, see below.
> 
>> I use sudo to edit these files as most of the files are editable only  
>> by root.
>> 
>> How do I use Fossil in this context?
>> Where should I set up the fossil repository?  In my unprivileged user  
>> home directory?
>> How should I be handling the need to use sudo to access the various  
>> files that I work on?  I suspect I'll be running into various  
>> permissions issues constantly?
>> 
>> Would my workflow look something like this for example?
>> 1: Create fossil repo in my home directory
>> 2: Go to the location of a file I want to put in fossil
>> 3: "fossil open" in this directory
>> 4: "fossil add" the files I wish to put under scm
>> 
>> Although I have read the quickstart guide it doesn't really nudge me  
>> in the right direction of how to actually drive it in a practical  
>> manner, especially where I have to use sudo.
> 
> This has come up before. See
> http://www.mail-archive.com/[email protected]/msg04760.html
> 
> What I'm currently doing is have soft-link to / in the directory of
> a non-root admin user. I don't know if/how it interacts with symlinks
> support. The versions of fossil in which I have this setup are:
> 
>    This is fossil version 1.21 [002580c50d] 2011-12-13 13:53:56 UTC
>    This is fossil version 1.22 [5dd5d39e7c] 2012-03-19 12:45:47 UTC
> 
> I'm still hoping for improved handling of permissions, and have not yet
> explored the possibilities of "Add the ability to run TH1 scripts after
> sync requests"
> 
> Needless to say, I'd encourage you to share your findings for the
> "fossil as a SCM for OS configuration" use case.
> 

For file from '/': look this thread:

http://www.mail-archive.com/[email protected]/msg05576.html

Fossil isn't usable from '/' dir. as a checkout. Some commands sometimes work, 
most of them doesn't. So for system config. I end up working on a checkout 
somewhere in a subdir in my home and I have a script which copy file that have 
changed from '/' to my checkout. ('fossil ls' is useful here)

So I always edit files from '/', and after I sync to my checkout dir with the 
script. I would like very much to work directly where file are used, I might 
try to start a branch to fix that eventually.

-- 
Martin G.
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to