facebook / sapling

A Scalable, User-Friendly Source Control System.

Home Page:https://sapling-scm.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Automatically pulling branch pattern

alex-statsig opened this issue · comments

I noticed there seems to be some internal logic for "auto-pulling" branches (https://github.com/facebook/sapling/blob/main/eden/scm/edenscm/autopull.py), but I couldn't find any documentation explaining what this does or how to use it.

My goal is to automatically pull all remotes matching remote/releases/*, so that our daily release branches automatically show up locally (and I don't have to manually pull specific ones). It seemed like by adding remotenames.autopullpattern in my slconfig I could enable this, but I couldn't seem to get it working:

[remotenames]
publicheads = remote/main,remote/master
autopullpattern = re:remote/releases/.*

Would love to hear if this is something that can be enabled with autopull or if anyone has ideas of another approach.