On Aug 16, 2017 12:54, "Stephan Beal" <sgb...@googlemail.com> wrote:

On Wed, Aug 16, 2017 at 9:19 PM, bch <brad.har...@gmail.com> wrote:

>
>
> On Aug 16, 2017 12:10, "Stephan Beal" <sgb...@googlemail.com> wrote:
>
> It's hypothetically possible, and i investigated it 3 or 4 years ago, but
> the devil is in the details :/. Not impossible, but you have to take care
> of details like properly undelta'ing anything which is deltad against the
> to-be-popped head.
>
>
>
> Oh - I didn't realize that's the direction the deltas worked...
>


Fossil tries to keep the undelta'd copy at the head, since it's the one
most likely to be accessed. That's not a guaranty, though - just a
preference/habit. Thus if you pop the head, you need to make sure and go
undelta all artifacts in that head which are not referenced by anything
else in the tree.


>
> At the time i wasn't confident enough in my knowhow of the internals to
> implement it. Also, it would only work up until you push to a remote, at
> which point all bets are off.
>
>
> Well... I suspect that's true, but still not entirely useless depending on
> context. Depending on project, one may simply redistribute the new
> ("popped") repo out to remotes and pick up from there.
>

Right. i believe there are certainly uses for it.

Another detail i forgot about earlier is the handling of branches: you can
only pop  from the tip of any given branch and only if no other branch
derives from that point in the branch. As soon as something derives from
what you want to pop, you have to go pop all that off first. When i
realized how ugly that gets, i stopped researching an implementation :/.


That doesn't sound unreasonable. Sort of doubly-constrained 1) from newest
to older, per branch 2) on conflict, retarget branch, go-to 1

Right?



-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf

_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to