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;

  1. clone the repo into ~/dumb-sling/ so it has the proper default

  2. add a hooks section to the end of ~/dumb-sling/<repo name>/.hg/hgrc

    [hooks]
    changegroup = hg push --new-branch
    
  3. add crontab -e entries 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?)


  1. Replacing/updating/fixing my shugits instance has been … a thing … for awhile. So … here goes a hacked-fix … ↩︎

comments powered by Disqus
Peter LaValle avatar
Peter LaValle
Any links probably include affiliate ids for that sweet sweet kickback - and some programs require that I tell you. The contents of this blog are likely unrelated - as they include games, paints, and build tools.