Thus said Richard Hipp on Fri, 19 Feb 2016 19:51:25 -0500:

> Again, I think the cleanup should be automatic.

It is for  the most part automatic. It isn't  automatic if the directory
still exists  but is no longer  a checkout. For example,  I accidentally
opened up a repository in /tmp  one time and apparently never closed it.
The repository  is long since gone,  but fossil continues to  hold on to
/tmp/:

$ fossil all ls -c | grep '^/tmp'
/tmp/
$ fossil all ignore -c /tmp/     
$ fossil all ls -c | grep '^/tmp'
/tmp/

This  failed because  when the  ckout  is written  to the  global_config
table, it is stored with the trailing slash (derived from g.zLocalRoot).
But there  is no g.zLocalRoot  to use when  using ``fossil all''  so the
slash needs to be put back on.

This now works with:

http://www.fossil-scm.org/index.html/info/f7a5e10ce9337280

$ /tmp/fossil all ignore -c /tmp/
$ /tmp/fossil all ls -c | grep '^/tmp'
$ 

I wonder though, should fossil just automatically check for the presence
of the  local repository  and not just  the directory  and automatically
remove the ckout if there is no local repository in the directory?

Thanks,

Andy
-- 
TAI64 timestamp: 4000000056c8d3cd


_______________________________________________
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