1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
Useful Scripts.
Get main repository:
$ mkdir useful
$ cd useful
$ brz init-repo
$ brz branch lp:useful my_branch
$ cd my_branch
To you can do a merge request on both GitHub and Launchpad, but I prefer it
if you use launchpad.
To push a branch to github, you have to set up git to work with github, then
you can do the following:
$ cd path/to/useful/my_branch
$ brz push --lossy github:username/useful,branch=my_branch
To pull from GitHub (into a bazaar tree):
$ cd path/to/useful
$ brz branch trunk some_branch
$ cd some_branch
$ brz pull https://github.com/username/useful,branch=some_branch
You can also use brz transparently with git, this will pull the repo as git:
$ cd path/to/useful
$ brz branch https://github.com/username/useful,branch=some_branch some_branch
You can then merge from and to the bazaar tree.
This provides a set of -- what I find -- useful scripts. If you find any of them
useful, feel free to use them to your hearts content.
THESE SCRIPTS ARE PROVIDED WITHOUT ANY WARRANTY. USE AT YOUR OWN RISK.
|