Fossil Forum

Show unexpected extras
Login

Show unexpected extras

Show unexpected extras

(1) By Warren Young (wyoung) on 2020-10-31 20:16:01 [source]

I'm looking for a way to non-destructively get a list of the unexpected extras in a check-out directory.

I already have a destructive method:

  $ fossil clean
  $ fossil undo
  $ fossil extra

That blows away everything in clean-glob then restores anything not listed there, so that the final command shows only things that we didn't expect to find were delete-able.

Not only is it destructive, it can be quite time-consuming in projects where "build all" is expensive.

I'm thinking something like fossil extra --unexpected/-u.

(2) By Warren Young (wyoung) on 2020-10-31 20:36:58 in reply to 1 [link] [source]

I suppose I should add that, yes, I know I can just move everything from clean-glob to ignore-glob to achieve this, but that then makes fossil-clean a no-op in the case where there are no unexpected extras, which should be the normal case. I use fossil clean as an alternative to "make clean" where I'm trying to return the check-out directory to the "as opened" state, so no, I'm not going to move everything to ignore-glob.