bzr branch
http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar
|
0.431.60
by Jelmer Vernooij
Add README. |
1 |
brz-propose
|
2 |
===========
|
|
3 |
||
4 |
``brz-propose`` is a plugin for `Breezy <https://www.breezy-vcs.org/>`_ that |
|
5 |
provides support for interacting with code hosting sites. |
|
6 |
||
7 |
It provides the following extra commands for Breezy: |
|
8 |
||
9 |
* ``brz publish``: publish a derived branch |
|
10 |
* ``brz propose``: publish and propose a branch for merging |
|
11 |
* ``brz find-merge-proposal``: locate branch proposals |
|
12 |
||
13 |
Supported codehosting sites
|
|
14 |
---------------------------
|
|
15 |
||
16 |
brz-propose currently supports the following two centralized codehosting sites: |
|
17 |
||
18 |
* `GitHub <https://www.github.com/>`_ |
|
19 |
* `Launchpad <https://launchpad.net/>`_ |
|
20 |
||
21 |
It also supports `GitLab <https://www.gitlab.com>`_ instances such as |
|
22 |
`GitLab.com <https://www.gitlab.com/>`_ or |
|
23 |
`Debian Salsa <https://salsa.debian.org>`_. |
|
24 |
||
25 |
Support for `BitBucket <https://bitbucket.org/>`_ and Gerrit is planned. |
|
26 |
||
27 |
Usage
|
|
28 |
-----
|
|
29 |
||
30 |
GitHub
|
|
31 |
~~~~~~
|
|
32 |
||
33 |
First, log into GitHub::
|
|
34 |
||
35 |
$ brz github-login mylogin
|
|
36 |
||
37 |
Then, you can clone a repository::
|
|
38 |
||
39 |
$ brz branch git://github.com/breezy-team/breezy
|
|
40 |
$ cd breezy
|
|
41 |
||
42 |
Make a test change::
|
|
43 |
||
44 |
$ touch test
|
|
45 |
$ brz add test
|
|
46 |
$ brz commit -m "Add test file"
|
|
47 |
||
48 |
And then propose the change for merging::
|
|
49 |
||
50 |
$ brz propose --name my-branch-name
|
|
51 |
||
52 |
This last command will: |
|
53 |
||
54 |
* create a fork of the *breezy-team/breezy* named *mylogin/breezy* at |
|
55 |
https://github.com/mylogin/breezy (if it did not exist) |
|
56 |
* push the local branch with the test change to a remote branch named
|
|
57 |
``my-branch-name`` in the new remote repository
|
|
58 |
* create a pull request on GitHub proposing the merge of ``my-branch-name`` |
|
59 |
into the main branch |
|
60 |
||
61 |
Launchpad
|
|
62 |
~~~~~~~~~
|
|
63 |
||
64 |
First, log into Launchpad::
|
|
65 |
||
66 |
$ brz lp-login mylogin
|
|
67 |
||
68 |
Then, you can clone a branch::
|
|
69 |
||
70 |
$ brz branch lp:brz
|
|
71 |
$ cd brz
|
|
72 |
||
73 |
Make a test change::
|
|
74 |
||
75 |
$ touch test
|
|
76 |
$ brz add test
|
|
77 |
$ brz commit -m "Add test file"
|
|
78 |
||
79 |
And then propose the change for merging::
|
|
80 |
||
81 |
$ brz propose --name my-branch-name
|
|
82 |
||
83 |
This last command will: |
|
84 |
||
85 |
* push the local branch to a new branch at *lp:~mylogin/brz/my-branch-name* |
|
86 |
* create a merge proposal on Launchpad merging
|
|
87 |
*lp:~mylogin/brz/my-branch-name* into *lp:brz* |
|
88 |
||
89 |
GitLab
|
|
90 |
~~~~~~
|
|
91 |
||
92 |
First, log into your GitLab instance. Here, we'll use Debian's `salsa |
|
93 |
<https://salsa.debian.org/>`_. When logged into your account in a web browser,
|
|
94 |
create a private token. Then run::
|
|
95 |
||
96 |
$ brz gitlab-login https://salsa.debian.org private-token
|
|
97 |
||
98 |
Then, clone a branch::
|
|
99 |
||
100 |
$ brz branch https://salsa.debian.org/jelmer/xandikos
|
|
101 |
$ cd xandikos
|
|
102 |
||
103 |
Make a test change::
|
|
104 |
||
105 |
$ touch test
|
|
106 |
$ brz add test
|
|
107 |
$ brz commit -m "Add test file"
|
|
108 |
||
109 |
And then propose the change for merging::
|
|
110 |
||
111 |
$ brz propose --name my-branch-name
|
|
112 |
||
113 |
This last command will: |
|
114 |
||
115 |
* create a fork of the *jelmer/xandikos* project named *mylogin/xandikos* at |
|
116 |
https://salsa.debian.org/mylogin/xandikos (if it did not exist) |
|
117 |
* push the local branch with the test change to a remote branch named
|
|
118 |
``my-branch-name`` in the new remote repository
|
|
119 |
* create a pull request on GitLab proposing the merge of ``my-branch-name`` |
|
120 |
into the main branch |