On Thu, May 31, 2012 at 7:21 AM, Andrew Stuart <
[email protected]> wrote:

> Hello all,
>
> I'm a complete newb with fossil and trying to grasp some basic concepts.
>
> I have an Ubuntu system that I am developing on.  I want to ensure that
> various files that I modify are in Fossil SCM.  There are source code files
> and also operating system configuration files.
>
> 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.
>

>From your email I gather that you have a mix of files to control, some are
perhaps in /etc or some other system location and some are source files?

Your recipe above would work if *all* the files to be controlled live under
the location where you ran the "fossil open" command.

However I suggest not attempting to directly control the system files.
Instead copy the files to a working area where you do the "fossil open"
then write a Makefile that has rules to put the files in place. E.g.
something like this:

/etc/some/file.cfg : file.cfg
              sudo install file.cfg /etc/some/file.cfg



>
> thanks heaps.
>
> Andrew
> ______________________________**_________________
> fossil-users mailing list
> [email protected].**org <[email protected]>
> http://lists.fossil-scm.org:**8080/cgi-bin/mailman/listinfo/**fossil-users<http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users>
>
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to