Auto saving/synchronizing Bitbucket repositories locally

PIERRE AUGIER pierre.augier at univ-grenoble-alpes.fr
Thu Jan 30 06:17:43 UTC 2020


Hi,

I have many repositories hosted on Bitbucket. I will need a tool to automatically save them locally (and synchronize them while I'm still working with Bitbucket).

Note that for the FOSS projects, I'm going to use https://foss.heptapod.net. I guess George will communicate about this solution on this list, but the announcement is already public : https://heptapod.net/a-public-heptapod-for-free-and-open-source-software.html

Anyway, I also need to save many other repositories locally. I didn't find anything convenient already developed, so I guess I'll have to code a bit. But maybe someone already did something similar?

I'm going to use it just few months so I plan to code something very crude. I would do it:

- in Python >= 3.6
- just for Linux (maybe Unix), with a simple daily cron for the synchronization
- only with ssh
- very slow and simple. I don't think I'm going to put asynchronous stuff. I may even call Mercurial with subprocess.

If someone is willing to write such tool in a better way, I would be very happy to try the result!

If someone wants to participate to the development of this great piece of software, tell me. For example, I will need to get the list of the repositories owned by the Bitbucket user (and even more, the list of repositories for which the user has writing permission), and I don't know yet how I'm going to do that. Any ideas ?

Pierre

--
Pierre Augier - CR CNRS                 http://www.legi.grenoble-inp.fr
LEGI (UMR 5519) Laboratoire des Ecoulements Geophysiques et Industriels
BP53, 38041 Grenoble Cedex, France                tel:+33.4.56.52.86.16


More information about the Mercurial mailing list