On Wed, Dec 09, 2009 at 12:19:19PM -0500, Joshua Paine wrote:
> On Wed, 2009-12-09 at 09:00 -0800, Michael wrote:
> > I think this is what works for me in those situations (GNU/Linux) ...
> >
> > $ for arg in $( fossil ls | egrep "^MISSING" | awk '{print $2}' ) ;
> > do
> > fossil rm ${arg} ;
> > done
>
> This was the command Michal Richter gave me a while ago when I was
> trying to do the same thing.
>
> fossil changes | grep ^MISSING | sed 's/^MISSING *//' | xargs fossil rm
>
> I understand the above command, but sed and xargs are still not familiar
> tools for me, so to use this means going out of my work flow to look it
> up. (Not to mention it's really long!) And of course it won't work at
> all on Windows.
>
> I think the key missing feature is a fossil command to automatically
> remove missing files, and perhaps a prompt to autoremove missing files
> when commit complains about them.
______________________________________________________________________
Agreed - I would prefer this feature as well, esp. the prompt.
Firstly, too much room for error with shell shenanigans.
Secondly, I always get bit with my commit failing and then
having to type in my comment again (after the monkeying around
with 'fossil rm').
~Michael
>
> --
> Joshua Paine
> LetterBlock: Web applications built with joy
> http://letterblock.com/
> 301-576-1920
>
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users