On Mar 12, 2011, at 10:57 AM, "Federico Ramallo" <[email protected]> wrote:
> we are trying to work the fossil way considering our workflow. So we are 
> learning.
> I just added the git commands to easily explain the actions we are trying to 
> run,

It's all good. Since many of us are familiar with git, too, it's a very 
reasonable way to proceed.

> The grep command is a really great deal for us because:
> * is more flexible than Ack (considering searching on .wiki, README and any 
> other file that is not code)

You probably know that ack can optionally search all file types or configurable 
file types. You might also try writing yourself a one-line shell script that 
makes use of `fossil ls` (to list all files in the project) and one of the text 
search tools for more control. If the large binaries aren't checked in, then 
this will automatically avoid searching those. If they are, you'll probably 
want to filter the list with grep before searching.

I believe there has been talk of adding search to fossil, but I don't know 
about progress on that if any.

> I think is interesting to know how to rollback a commit. I'm used to just add 
> a new commit removing the changes. That way we keep the history (made a 
> mistake, fixed the mistake)

I thought this just came up, but I can't find it. Of course in fossil you can 
still just add a commit reversing the changes, but another option is to make 
the mistaken commit the start of a new branch named 'oops' or 'mistake' and 
immediately close that branch. The record of the error still exists, but the 
branch timeline is a clearer reference on the actual progress of the code.

(To do this, run `fossil ui`, go to the timeline, click on the mistaken commit, 
click on 'Edit' by 'Other Links:", and use the checkbox and textbox by 
"Branching" to move the commit to a new branch. You'll want to mark the Leaf 
Closure checkbox as well.) 

> Also, What we couldn't find out is how to delete a branch (or at least close 
> it)

Branches cannot be deleted (nor can much of anything be completely deleted in 
fossil!), but to close the branch, use the Leaf Closure checkbox on the details 
page of the latest commit in the branch.
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to