~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/en/user-guide/svn_plugin.txt

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-04-08 06:17:41 UTC
  • mfrom: (4797.33.16 apport)
  • Revision ID: pqm@pqm.ubuntu.com-20100408061741-m7vl6z97vu33riv7
(robertc) Make sure ExecutablePath and InterpreterPath are set in
        Apport. (Martin Pool, James Westby, lp:528114)

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
GNOME project like **beagle**. Firstly, setup a local shared repository
31
31
for storing your branches in and checkout the trunk::
32
32
 
33
 
  bzr init-repo --rich-root-pack beagle-repo
 
33
  bzr init-repo beagle-repo
34
34
  cd beagle-repo
35
35
  bzr checkout svn+ssh://svn.gnome.org/svn/beagle/trunk beagle-trunk
36
36
 
37
 
Note that using the ``rich-root-pack`` option to ``init-repo`` is
38
 
important as bzr-svn requires some extra metadata not yet supported in Bazaar's
39
 
default repository format. Next, create a feature branch and hack away::
 
37
Next, create a feature branch and hack away::
40
38
 
41
39
  bzr branch beagle-trunk beagle-feature1
42
40
  cd beagle-feature1
43
 
  *changes*
 
41
  (hack, hack, hack)
44
42
  bzr commit -m "blah blah blah"
45
 
  *changes*
 
43
  (hack, hack, hack)
46
44
  bzr commit -m "blah blah blah"
47
45
 
48
46
When the feature is cooked, refresh your trunk mirror and merge
67
65
instead. bzr-svn provides the ``svn-import`` command for doing this
68
66
repository-to-repository conversion. Here's an example of how to use it::
69
67
 
70
 
  bzr init-repo --rich-root-pack beagle.bzr
71
 
  cd beagle.bzr
72
68
  bzr svn-import svn+ssh://svn.gnome.org/svn/beagle
73
69
 
74
70
Here's the recipe from above updated to use a central Bazaar mirror::
75
71
 
76
 
  bzr init-repo --rich-root-pack beagle-repo
 
72
  bzr init-repo beagle-repo
77
73
  cd beagle-repo
78
74
  bzr branch bzr+ssh://bzr.gnome.org/beagle.bzr/trunk beagle-trunk
79
75
  bzr branch beagle-trunk beagle-feature1
80
76
  cd beagle-feature1
81
 
  *changes*
 
77
  (hack, hack, hack)
82
78
  bzr commit -m "blah blah blah"
83
 
  *changes*
 
79
  (hack, hack, hack)
84
80
  bzr commit -m "blah blah blah"
85
81
  cd ../beagle-trunk
86
82
  bzr pull
107
103
 
108
104
Bazaar and Subversion are different tools with different capabilities
109
105
so there will always be some limited interoperability issues.
110
 
Here are some examples current as of bzr-svn 0.4.10:
 
106
Here are some examples current as of bzr-svn 0.5.4:
111
107
 
112
108
 * Bazaar doesn't support versioned properties
113
109
 
114
110
 * Bazaar doesn't support tracking of file copies.
115
111
 
116
 
 * ``bzr push`` to an existing Subversion branch works but 
117
 
   ``bzr push`` to a new Subversion branch doesn't. Until
118
 
   the relevant bug is fixed (#121875), you need to use
119
 
   ``bzr svn-push`` in the latter case.
120
 
 
121
112
See the bzr-svn web page,
122
113
http://bazaar-vcs.org/BzrForeignBranches/Subversion,
123
114
for the current list of constraints.