~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/developers/knitpack.txt

  • Committer: Vincent Ladeuil
  • Date: 2007-11-24 14:20:59 UTC
  • mto: (3928.1.1 bzr.integration)
  • mto: This revision was merged to the branch mainline in revision 3929.
  • Revision ID: v.ladeuil+lp@free.fr-20071124142059-2114qtsgfdv8g9p1
Ssl files needed for the test https server.

* bzrlib/tests/ssl_certs/create_ssls.py: 
Script to create the ssl keys and certificates.

* bzrlib/tests/ssl_certs/server.crt: 
Server certificate signed by the certificate authority.

* bzrlib/tests/ssl_certs/server.csr: 
Server certificate signing request.

* bzrlib/tests/ssl_certs/server_without_pass.key: 
Server key usable without password.

* bzrlib/tests/ssl_certs/server_with_pass.key: 
Server key.

* bzrlib/tests/ssl_certs/ca.key: 
Certificate authority private key.

* bzrlib/tests/ssl_certs/ca.crt: 
Certificate authority certificate.

* bzrlib/tests/ssl_certs/__init__.py: 
Provide access to ssl files (keys and certificates). 

Show diffs side-by-side

added added

removed removed

Lines of Context:
42
42
``knitpack`` one. Here's how::
43
43
 
44
44
  cd my-stuff
45
 
  bzr init --pack-0.92
 
45
  bzr init --knitpack-experimental
46
46
  bzr add
47
47
  bzr commit -m "initial import"
48
48
 
49
49
In other words, use the normal sequence of commands but add the
50
 
``--pack-0.92`` option to the ``init`` command.
51
 
 
52
 
**Note:** In bzr 0.92, this format was called ``knitpack-experimental``.
 
50
``--knitpack-experimental`` option to the ``init`` command.
53
51
 
54
52
Creating a new knitpack repository
55
53
----------------------------------
58
56
for branches, you can make it a ``knitpack`` repository like this::
59
57
 
60
58
  cd my-repo
61
 
  bzr init-repo --pack-0.92 .
 
59
  bzr init-repo --knitpack-experimental .
62
60
  cd my-stuff
63
61
  bzr init
64
62
  bzr add
65
63
  bzr commit -m "initial import"
66
64
 
67
65
In other words, use the normal sequence of commands but add the
68
 
``--pack-0.92`` option to the ``init-repo`` command.
 
66
``--knitpack-experimental`` option to the ``init-repo`` command.
69
67
 
70
68
Upgrading an existing branch or repository to knitpack format
71
69
-------------------------------------------------------------
73
71
If you have an existing branch and wish to migrate it to
74
72
a ``knitpack`` format, use the ``upgrade`` command like this::
75
73
 
76
 
  bzr upgrade --pack-0.92 path-to-my-branch
 
74
  bzr upgrade --knitpack-experimental path-to-my-branch
77
75
 
78
76
If you are using a shared repository, run::
79
77
 
80
 
  bzr upgrade --pack-0.92 ROOT_OF_REPOSITORY
 
78
  bzr upgrade --knitpack-experimental ROOT_OF_REPOSITORY
81
79
 
82
80
to upgrade the history database. Note that this will not
83
81
alter the branch format of each branch, so
97
95
 
98
96
Here are the commands for using the ``pull`` approach::
99
97
 
100
 
    bzr init --pack-0.92 my-new-branch
 
98
    bzr init --knitpack-experimental my-new-branch
101
99
    cd my-new-branch
102
100
    bzr pull my-source-branch
103
101
 
105
103
 
106
104
    bzr branch my-source-branch my-new-branch
107
105
    cd my-new-branch
108
 
    bzr upgrade --pack-0.92 .
 
106
    bzr upgrade --knitpack-experimental .
109
107
 
110
108
Here are the commands for the shared repository approach::
111
109
 
112
110
  cd my-repo
113
 
  bzr init-repo --pack-0.92 .
 
111
  bzr init-repo --knitpack-experimental .
114
112
  bzr branch my-source-branch my-new-branch
115
113
  cd my-new-branch
116
114
 
283
281
However, in some circumstances we may want to garbage-collect or prune
284
282
existing data, or reconcile indexes.
285
283
 
286
 
..
287
 
   vim: tw=72 ft=rst expandtab
 
284
  vim: tw=72 ft=rest expandtab