Fossil Forum

Allow reverting a managed directory-tree
Login

Allow reverting a managed directory-tree

Allow reverting a managed directory-tree

(1) By anonymous on 2020-04-20 19:21:50 [link] [source]

Basically, requesting support of 'fossil revert subdir' command. Such that it reverts all managed files under the subdir-tree.

Currently such command results in this:

fosssil revert subdir
UNMANAGE subdir

None of the managed files under subdir are reverted. The only way to make it revert those is by using shell's glob 'fossil revert subdir/*' and this sects only the files in subdir not the the whole subdir tree. Fossil has all the info for the managed files under the subdir, so it should be possible to revert the whole subdir-tree.

(2) By Richard Hipp (drh) on 2020-04-20 19:26:56 in reply to 1 [source]

We are currently "pencils-down" for the 2.11 release. Bug fixes only. No new features. Let's consider your suggestion after the 2.11 release comes out.

(3) By anonymous on 2020-04-30 08:41:01 in reply to 2 [link] [source]

As the 2.11 release is now postponed, I went on to sketch an implementaion for 'revert dir-name' in [revert-dir] branch.

Please take a look and try it, edit if needed. I also added the test cases for this in test/revert.test

(4.1) By ddevienne on 2020-04-30 10:07:10 edited from 4.0 in reply to 3 [link] [source]

[OT] I'm curious. Why anonymous on the forum, and giving links to work
purportedly from you clearly showing you'd be user: ashepilko?

Personally I don't quite get it...