~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Vincent Ladeuil
  • Date: 2009-05-04 14:48:21 UTC
  • mto: (4349.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 4350.
  • Revision ID: v.ladeuil+lp@free.fr-20090504144821-39dvqkikmd3zqkdg
Handle servers proposing several authentication schemes.

* bzrlib/transport/http/_urllib2_wrappers.py:
(AbstractAuthHandler.auth_required): Several schemes can be
proposed by the server, try to match each one in turn.
(BasicAuthHandler.auth_match): Delete dead code.

* bzrlib/tests/test_http.py:
(load_tests): Separate proxy and http authentication tests as they
require different server setups.
(TestAuth.create_transport_readonly_server): Simplified by using
parameter provided by load_tests.
(TestAuth.test_changing_nonce): Adapt to new parametrization.
(TestProxyAuth.create_transport_readonly_server): Deleted.

* bzrlib/tests/http_utils.py:
(DigestAndBasicAuthRequestHandler, HTTPBasicAndDigestAuthServer,
ProxyBasicAndDigestAuthServer): Add a test server proposing both
basic and digest auth schemes but accepting only digest as valid.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
who are unable to do so yet for timing or non-technical reasons.
21
21
 
22
22
For installation instructions, see the bzr-svn home page:
23
 
http://wiki.bazaar.canonical.com/BzrForeignBranches/Subversion.
 
23
http://bazaar-vcs.org/BzrForeignBranches/Subversion.
24
24
 
25
25
 
26
26
A simple example
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 beagle-repo
 
33
  bzr init-repo --rich-root-pack beagle-repo
34
34
  cd beagle-repo
35
35
  bzr checkout svn+ssh://svn.gnome.org/svn/beagle/trunk beagle-trunk
36
36
 
37
 
Next, create a feature branch and hack away::
 
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::
38
40
 
39
41
  bzr branch beagle-trunk beagle-feature1
40
42
  cd beagle-feature1
69
71
 
70
72
Here's the recipe from above updated to use a central Bazaar mirror::
71
73
 
72
 
  bzr init-repo beagle-repo
 
74
  bzr init-repo --rich-root-pack beagle-repo
73
75
  cd beagle-repo
74
76
  bzr branch bzr+ssh://bzr.gnome.org/beagle.bzr/trunk beagle-trunk
75
77
  bzr branch beagle-trunk beagle-feature1
110
112
 * Bazaar doesn't support tracking of file copies.
111
113
 
112
114
See the bzr-svn web page,
113
 
http://wiki.bazaar.canonical.com/BzrForeignBranches/Subversion,
 
115
http://bazaar-vcs.org/BzrForeignBranches/Subversion,
114
116
for the current list of constraints.