/useful/trunk-1

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/useful/trunk-1
5 by Gustav Hartvigsson
You can use git on Launchpad too.
1
Useful Scripts.
2
3
This provides a set of -- what I find -- useful scripts. If you find any of them
4
useful, feel free to use them to your hearts content
5
6
THESE SCRIPTS ARE PROVIDED WITHOUT ANY WARRANTY. USE AT YOUR OWN RISK.
7
8
9
--------------------------------------------------------------------------------
10
11
Get main repository:
12
13
$ mkdir useful
14
$ cd useful
15
$ brz init-repo
16
$ brz branch lp:useful my_branch
17
$ cd my_branch
18
19
To you can do a merge request on both GitHub and Launchpad, but I prefer it
20
if you use launchpad.
21
22
$ cd path/to/useful
23
$ brz branch trunk some_branch
24
$ cd some_branch
25
$ # do some hacking
26
$ brz push lp:~username/useful/some_branch
27
28
Please note that you can also use git on launchpad, please see:
29
https://help.launchpad.net/Code/Git
30
31
To push a branch to github, you have to set up git to work with github, then
32
you can do the following:
33
34
$ cd path/to/useful/some_branch
35
$ brz push --lossy github:username/useful,branch=my_branch
36
37
To pull from GitHub (into a bazaar tree):
38
39
$ cd path/to/useful
40
$ brz branch trunk some_branch
41
$ cd some_branch
42
$ brz pull github:username/useful,branch=some_branch
43
44
You can also use brz transparently with git, this will pull the repo as git:
45
46
$ cd path/to/useful
47
$ brz branch github:username/useful.git some_branch
48
49
You can then merge from and to the bazaar tree.
50
51
$ cd some_bzr_branch
52
$ brz diff ../some_git_branch.git
53
54
or
55
56
$ cd some_git_branch.git
57
$ brz diff ../some_bzr_branch
58