Fossil SCM
empty-dirs setting in branch gets applied to trunk
4099c2aead93060…
· opened 13 years, 1 month ago
- Type
- Code_Defect
- Priority
- —
- Severity
- Important
- Resolution
- —
- Subsystem
- —
- Created
- Feb. 19, 2013 5:12 p.m.
If you add an empty-dirs file in your .fossil-settings directory on a branch, the empty directories are created when you update to the trunk, and not when you update to the branch.
Steps to reproduce:
fossil init bug.fossil mkdir bug cd bug fossil open ../bug.fossil fossil branch new empty-dirs-branch fossil update empty-dirs-branch mkdir .fossil-settings echo testdir > .fossil-settings/empty-dirs fossil add .fossil-settings/empty-dirs fossil commit -m "New empty-dirs file for this branch" fossil update trunk
At this point, the "testdir" directory has been created, even though that setting was part of the branch, not the trunk.
cd .. rm -rf bug mkdir bug cd bug fossil open ../bug.fossil fossil update empty-dirs-branch
At this point, "testdir" has not been created.
Comments (1)
If you add an empty-dirs file in your .fossil-settings directory on a branch, the empty directories are created when you update to the trunk, and not when you update to the branch.
Steps to reproduce:
fossil init bug.fossil mkdir bug cd bug fossil open ../bug.fossil fossil branch new empty-dirs-branch fossil update empty-dirs-branch mkdir .fossil-settings echo testdir > .fossil-settings/empty-dirs fossil add .fossil-settings/empty-dirs fossil commit -m "New empty-dirs file for this branch" fossil update trunk
At this point, the "testdir" directory has been created, even though that setting was part of the branch, not the trunk.
cd .. rm -rf bug mkdir bug cd bug fossil open ../bug.fossil fossil update empty-dirs-branch
At this point, "testdir" has not been created.