3 ms·
The biggest problem with multiple repositories is to manage consistent versions (commits). For example, let's say that I have a release 1.0, which consists of
by amelius 8y ago
The biggest problem with multiple repositories is to manage consistent versions (commits).
For example, let's say that I have a release 1.0, which consists of a bunch of commit IDs of various repositories. How do I go back to that release without manually checking out the specific commit ID in each repo?
- stinos 8y agoWe use tags for that. Upon each release all repos get the same tag. Alternatively with tools like mr [1] you can for each release keep a .mrconfig somewhere which keeps the commit SHA for each repo (not 100% sure if mr can create such file by itself, but it's not really hard) so that if you do a fresh clone it checks out each repo at the correct commit. [1] https://linux.die.net/man/1/mr https://linux.die.net/man/1/mr
- pabs3 8y agoThere is a mr/myrepos plugin that adds some automation for remembering the currently checked out commit: https://bitbucket.org/mforbes/mmfhg#rst-header-mr-un-freeze https://bitbucket.org/mforbes/mmfhg#rst-header-mr-un-freeze