-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME
58 lines (38 loc) · 1.4 KB
/
README
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Useful Scripts.
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.
--------------------------------------------------------------------------------
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.
$ cd path/to/useful
$ brz branch trunk some_branch
$ cd some_branch
$ # do some hacking
$ brz push lp:~username/useful/some_branch
Please note that you can also use git on launchpad, please see:
https://help.launchpad.net/Code/Git
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/some_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 github: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 github:username/useful.git some_branch
You can then merge from and to the bazaar tree.
$ cd some_bzr_branch
$ brz diff ../some_git_branch.git
or
$ cd some_git_branch.git
$ brz diff ../some_bzr_branch