Comment 4 for bug 1742299

Revision history for this message
Dmitrii Shcherbakov (dmitriis) wrote :

Christopher,

From the git workflow perspective with launchpad you would need to:

1) clone a git repository locally
2) make your changes
3) create a merge proposal

➜ testrepo git init
Initialized empty Git repository in /tmp/testrepo/.git/

➜ testrepo git:(master) ✗ touch testfile && git add testfile && git commit -m 'testcommit'
[master (root-commit) 4b8cb6c] testcommit
 1 file changed, 0 insertions(+), 0 deletions(-)
 create mode 100644 testfile

➜ testrepo git:(master) git push --set-upstream git+ssh://git.launchpad.net/~cberner/+git/testrepo master
Counting objects: 3, done.
Writing objects: 100% (3/3), 221 bytes | 221.00 KiB/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To git+ssh://git.launchpad.net/~cberner/+git/testrepo
 * [new branch] master -> master
Branch master set up to track remote branch master from git+ssh://git.launchpad.net/~cberner/+git/testrepo.

This will create a repository under https://code.launchpad.net/~cberner/+git

https://code.launchpad.net/~cberner/+git/testrepo - this will be your personal project URL.

After that you can go to

https://code.launchpad.net/~cberner/+git/testrepo/+edit

And change the project "target" from "Personal" to "Project" and search for, e.g., "maas". In this example I will use "testrepo" as a target project instead.

As a result your repo URL will look like this: https://code.launchpad.net/~cberner/testrepo/+git/testrepo

This is because of how launchpad URLs are structured - lp is project-oriented

https://help.launchpad.net/Code/Git#Repository_URLs

https://code.launchpad.net/~OWNER/+git/REPOSITORY

You can then create a merge proposal either via web ui or by visiting a URL directly:

https://code.launchpad.net/~cberner/testrepo/+git/testrepo/+ref/master/+register-merge

Normally, before creating merge proposals, you also create a feature branch so that your own repo is structured and you can track multiple merge proposals in different branches.

You can see how other people use the same approach:

https://code.launchpad.net/~bjornt/maas/+git/maas

I hope that helps.