@@ -59,8 +59,8 @@ def __init__(
5959 parent_branch: Parent's branch path (e.g., '/main' or '/main/L1')
6060 on_success: Action on clean exit - "commit" or None
6161 on_error: Action on exception - "abort" or None
62- mount_root: Filesystem mount root (for single-mount backends where
63- branch virtual paths are always relative to root).
62+ mount_root: Filesystem mount root (branch virtual paths are
63+ always relative to this root).
6464 """
6565 self ._fs = fs
6666 self ._name = name
@@ -107,13 +107,7 @@ def branch(
107107 Returns:
108108 New Branch instance
109109 """
110- if self ._fs .single_mount ():
111- # Single-mount backends: mountpoint is always the mount root
112- # (create_branch will return the actual virtual path)
113- child_mount = self ._mount_root
114- else :
115- # Mount-per-branch backends: create sibling directory
116- child_mount = self ._path .parent / f"{ self ._path .name } _{ name } "
110+ child_mount = self ._mount_root
117111 return Branch (
118112 fs = self ._fs ,
119113 name = name ,
@@ -127,10 +121,7 @@ def branch(
127121
128122 def commit (self ) -> None :
129123 """
130- Commit the branch.
131-
132- For DaxFS: commits the entire branch chain to main.
133- For BranchFS: commits the leaf branch to its parent.
124+ Commit the branch (merges changes to parent).
134125 """
135126 if self ._finished :
136127 return
@@ -139,10 +130,7 @@ def commit(self) -> None:
139130
140131 def abort (self ) -> None :
141132 """
142- Abort the branch.
143-
144- For DaxFS: aborts the entire branch chain back to main.
145- For BranchFS: aborts the leaf branch, returning to parent.
133+ Abort the branch (rolls back to parent).
146134 """
147135 if self ._finished :
148136 return
0 commit comments