On Mon, 2009-11-23 at 15:31 +0100, Heinrich Huss wrote:
> a lot of files were moved, renamed and merged. In this  
> situation it is not easy to handle this later manually using fossil.   

`fossil add` will recurse directories and can be used with wildcards,
and it's harmless to `fossil add` things that have already been added,
so unless you have a lot of files mixed in that are not in the repo and
should stay not in it, adding the new or renamed files shouldn't be too
much of a problem. So, seems like the biggest problem for handling this
after the fact is `fossil rm`ing all those files that no longer exist.

It would be nice if fossil had an auto-remove command, but in the
meantime michael richter provided this shell command to handle that sort
of thing in response to my similar question a month ago:

fossil changes | grep ^MISSING | sed 's/^MISSING *//' | xargs fossil rm

AFAICT, this would need to be run from the root of your open repo (i.e.,
would fail in a subdir thereof).

> I think the best solution is to write a plugin for eclipse

In some sense best, no doubt, but sticking the above into a one-line
shell script may be good enough, and much much faster!

-- 
Joshua Paine  
LetterBlock: Web applications built with joy  
http://letterblock.com/  
301-576-1920

_______________________________________________
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