[feedhenry-dev] Handy mr commands for updating all apb repos

Paolo Haji phajidec at redhat.com
Thu Dec 7 12:38:15 UTC 2017


This is great info!
It's very similar to the part of the rationale for using lerna
<https://lernajs.io/> in RainCatcher, though the main points are the
versioning of published npm packages and the symlinking for local
development.

I was wondering if there is a way to filter repositories form `mr run`,
considering for example you could have registered other, non-apb repos
under mr.
It seems this is possible through a skip param that receives a bash command
and passes the repository's name via $1.

Looking at more of the documentation of both myrepos and repo
<https://source.android.com/setup/using-repo> it seems they support the
notion of sharing the configuration file, so it might be worth looking into
having i.e. a small repository/gist with an .mrconfig for the set of apb
repos

On Thu, Dec 7, 2017 at 8:10 AM, David Martin <davmarti at redhat.com> wrote:

> For future handiness,
>
> If you've already run 'mr register' in each of the cloned apb repos (e.g
> https://github.com/feedhenry/unifiedpush-apb), here's some commands to
> update the same file in each repo, and create a PR.
> In this case, it was updating the apb tools image name.
>
>
> # Checkout master, update it, then checkout a new branch
> mr run git checkout master
> mr run git pull origin master
> mr run git checkout -b update-apb-tools-image
>
> # Replace the image name in the Makefile
> mr run sed -i 's/ansibleplaybookbundle\/apb/ansibleplaybookbundle\/apb-tools/'
> Makefile
>
> # Add, Commit and push
> mr run git add Makefile
> mr run git commit -m "Update the apb image to use apb-tools"
> mr run git push origin update-apb-tools-image
>
> # Create the pull requests
> mr run hub pull-request -b feedhenry:master -m "Update the apb image to
> use apb-tools"
> .....
>
>
>
>
> [1] https://myrepos.branchable.com/
> [2[ https://github.com/github/hub
> --
> David Martin
> Red Hat Mobile
> Twitter: @irldavem
> IRC: @irldavem (feedhenry, mobile-internal)
>
> _______________________________________________
> feedhenry-dev mailing list
> feedhenry-dev at redhat.com
> https://www.redhat.com/mailman/listinfo/feedhenry-dev
>
>


-- 

PAOLO HAJI

SOFTWARE ENGINEER, RED HAT MOBILE APPLICATION PLATFORM

Red Hat Brasil <https://www.redhat.com/>

phaji at redhat.com
<https://red.ht/sig>
TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/feedhenry-dev/attachments/20171207/8e8c92e4/attachment.htm>


More information about the feedhenry-dev mailing list