[darcs-devel] [issue1556] task: abandon tentative files and keep the information in memory

Ben Franksen bugs at darcs.net
Mon Jul 23 13:27:26 UTC 2018


Ben Franksen <ben.franksen at online.de> added the comment:

Okay, if this is a preparation for branches, then I want to get things
right. I made a conceptual mistake when I proposed a
_darcs/branches/current file.

So a named branch is a file under _darcs/branches named like the branch.
We need exactly one branch to be active ("checked out" in git terms).
How do we represent that? A simple solution is to maintain a copy of the
active branch file as _darcs/active_branch. We could also store just the
branch name in _darcs/active_branch (akin to a symbolic link); but that
doesn't fit well with the idea of introducing branches step-by-step:
we'd have the conjure up a name for the single branch in a traditional
single-branch-repo. So, for the first step we don't actually need the
_darcs/branches directory, just a single file _darcs/active_branch or
perhaps just _darcs/active.

__________________________________
Darcs bug tracker <bugs at darcs.net>
<http://bugs.darcs.net/issue1556>
__________________________________


More information about the darcs-devel mailing list