File: README.asciidoc

package info (click to toggle)
git-remote-bzr 0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 236 kB
  • ctags: 107
  • sloc: python: 791; sh: 772; makefile: 35
file content (86 lines) | stat: -rw-r--r-- 2,907 bytes parent folder | download | duplicates (2)
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
'git-remote-bzr' is the semi-official Bazaar bridge from the Git project, once
installed, it allows you to clone, fetch and push to and from Bazaar
repositories as if they were Git ones:

--------------------------------------
git clone "bzr::lp:ubuntu/hello"
--------------------------------------

To enable this, simply add the 'git-remote-bzr' script anywhere in your
`$PATH`:

--------------------------------------
wget https://raw.github.com/felipec/git-remote-bzr/master/git-remote-bzr -O ~/bin/git-remote-bzr
chmod +x ~/bin/git-remote-bzr
--------------------------------------

That's it :)

Obviously you will need Bazaar installed.

== Notes ==

Remember to run `git gc --aggressive` after cloning a repository, specially if
it's a big one. Otherwise lots of space will be wasted.

The oldest version of Bazaar supported is 2.0. Older versions are not tested.

=== Branches vs. repositories ===

Bazaar's UI can clone only branches, but a repository can contain multiple
branches, and 'git-remote-bzr' can clone both.

For example, to clone a branch:

-------------------------------------
git clone bzr::bzr://bzr.savannah.gnu.org/emacs/trunk emacs-trunk
-------------------------------------

And to clone the whole repository:

-------------------------------------
git clone bzr::bzr://bzr.savannah.gnu.org/emacs emacs
-------------------------------------

The second command would clone all the branches contained in the emacs
repository, however, it's possible to specify only certain branches:

-------------------------------------
git config remote-bzr.branches 'trunk, xwindow'
-------------------------------------

Some remotes don't support listing the branches contained in the repository, in
which cases you need to manually specify the branches, and while you can
specify the configuration in the clone command, you might find this easier:

-------------------------------------
git init emacs
git remote add origin bzr::bzr://bzr.savannah.gnu.org/emacs
git config remote-bzr.branches 'trunk, xwindow'
git fetch
-------------------------------------

=== Caveats ===

Limitations of the remote-helpers' framework apply. In particular, these
commands don't work:

* `git push origin :branch-to-delete`
* `git push origin old:new` (it will push 'old') (patches available)
* `git push --dry-run origin branch` (it will push) (patches available)

== Other projects ==

There are other 'git-remote-bzr' projects out there, do not confuse this one,
this is the one distributed officially by the Git project:

* https://launchpad.net/bzr-git[bzr-git's git-remote-bzr]
* https://github.com/lelutin/git-remote-bzr[lelutin 's git-remote-bzr]

For a comparison between these and other projects go
https://github.com/felipec/git/wiki/Comparison-of-git-remote-bzr-alternatives[here].

== Contributing ==

Send your patches to the mailing list git-fc@googlegroups.com (no need to
subscribe).