Dumb Sling
I had to do a intermediate thing - IDK what happened.
My SurfacePro3 no longer turns on (as of … Tuesday?) and in a panic - I started using a pi5 for desktop work. This has been much smoother/simpler/cleaner and has filled me with joy - but - for reasons I’ve yet to diagnose I can’t connect from my desktop to my shugits service.1 The solution I spun out of hay was/is to use a second intermediate host to “jump” or “slingshot” repositories between the two.
This is the process;
-
clone the repo into ~/dumb-sling/ so it has the proper
default -
add a hooks section to the end of
~/dumb-sling/<repo name>/.hg/hgrc[hooks] changegroup = hg push --new-branch -
add
crontab -eentries to push and pull# every 5 minutes pull changes into the sling */5 * * * * hg --cwd ~/dumb-sling/shugits pull default */5 * * * * hg --cwd ~/dumb-sling/peterblog pull default # every 45 minutes push changes from the sling */45 * * * * hg --cwd ~/dumb-sling/shugits push default */45 * * * * hg --cwd ~/dumb-sling/peterblog push default
So … so … why’d I write that down?
Because - I want to add another repo to the list!
(this is a notebook, right?)