On Mon, Sep 2, 2013 at 11:41 AM, Martin S. Weber <ephae...@gmx.net> wrote:

> On Mon, Sep 02, 2013 at 07:30:01PM +0200, Stephan Beal wrote:
> > @All:
> > Your answers surprise me a bit, guys. addremove, really? i've never used
> > that one, either.
>
> I find it easy to bring my checkout to the state I want the DB to reflect
> and then just go ahead and do so in a single swoop. "Getting (all) files
> in place and teaching fossil about it" is one of my "use case"s, if you
> will.
>

One of the weaker points in fossil is the handling of add, rm and mv. Last
I checked these do not fully follow Unix semantics when used recursively
and are generally quirky. This has been debated and pointed out a number of
times and I don't particularly wish to revisit it but I mention it because
I now advocate a methodology similar to what Martin described which makes
those quirks much less of an issue.

The methodology is simply as follows:

1. Religiously keep .fossil-settings/ignore-glob accurate and updated.
2. Don't mess with lots of fossil operations for add, move, rm but instead
do "fossil addremove"

NOTE: This methodology is oriented to the early phases of a project where
things are chaotic and files are moving around a lot. Once a project
stabilizes the need for all the moving, removing and renaming usually drops
substantially. However refactoring is not uncommon and again it is
addremove that makes it easy.

ASIDE: addremove is also really handy in automated use of fossil. I use
fossil to sync zim wiki files from my netbook to my desktop and to my
phone. An addremove and commit is all that is needed. Works great IMHO.

(Irrelevant aside: Most of the users I support still get really pissed off
when they do a bunch of "fossil rm ..." operations and then when they go to
commit they must do an update due to commits done in parallel and the
update brings back all the junk they just painstakingly cleaned up. I'd
like to see fossil prompt the user with a "Do you really want to continue"
message and let the user know that this is a great time to use
--allow-fork.)


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



-- 
Matt
-=-
90% of the nations wealth is held by 2% of the people. Bummer to be in the
majority...
_______________________________________________
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