2013/12/3 Andy Bradford <[email protected]>: > But if someone simply wants to hide a branch of development from the > timeline, it would be a mistake to close the branch. Should we assume > that a hidden branch is also one that is considered to be a ``mistake?''
My initial idea was that when making a "mistake", 3 things should be done: - Move the commit (or multiple commits) to branch "mistake" - Close the branch. - Hide the branch. Hiding should only allowed for closed branches. But this turns out to be difficult to implement: Checking whether the branch is closed must follow the succeeding commits, and then check the "closed" tag on the leaf. Much easier was to combine the last two steps. If you don't want the branch being closed (although I cannot imagine a useful use-case for that), you can always re-open it. > Given that there is also alread a checkbox for ``Mark this leaf as > closed...'' should it be forced in the event that something is marked as > hidden? The user has the option there to check if they want and it may > be less of a surprise factor since they will have to explicitly check it > to make it closed. There's a difference: The ``Mark this leaf as closed...'' checkbox closes the current node only, not any succeeding nodes. This makes sense, as any node having successors on the same branch is already closed implicitly. Hiding a branch should set a propagating "hidden" tag on the current node and the "closed" tag on the leaf node. But setting a propagating "closed" tag on the current node has exactly the same effect: it automatically propagates to the leaf we otherwise would need to search for. It makes the implementation and the use-case much simpler, and does exactly what I want to happen. If both the ``Mark this leaf as closed...'' and the "Hide..." checkbox are selected, the second has precedence: You cannot put a propagating "hidden" tag and a normal "hidden" tag on the same node. But it's not an error: both checkboxes have the same effect. Some javascript which selects the ''Mark.." checkbox when the "Hide.." checkbox is selected would be super! 2013/12/3 Andy Bradford <[email protected]>: > I did notice that there appears to be an unused variable: > > http://www.fossil-scm.org/index.html/artifact/a366fc950d92e1b7d063855450561128adb149bc?ln=1758 > > It gets set on line 1758, but then never used; consequently it appears > that the -u|--unhide option in the commandline timeline doesn't work. I didn't manage to get the SQL right for the commandline timeline, yet. That's all. Thanks! Jan Nijtmans _______________________________________________ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

