Merge lp:~jelmer/brz/init-shared-repo into lp:brz
- init-shared-repo
- Merge into trunk
Proposed by
Jelmer Vernooij
Status: | Merged |
---|---|
Approved by: | Jelmer Vernooij |
Approved revision: | no longer in the source branch. |
Merge reported by: | The Breezy Bot |
Merged at revision: | not available |
Proposed branch: | lp:~jelmer/brz/init-shared-repo |
Merge into: | lp:brz |
Diff against target: |
769 lines (+103/-77) 33 files modified
breezy/builtins.py (+4/-4) breezy/errors.py (+7/-0) breezy/git/dir.py (+3/-0) breezy/git/tests/test_dir.py (+8/-0) breezy/help_topics/__init__.py (+8/-8) breezy/plugins/bash_completion/tests/test_bashcomp.py (+5/-3) breezy/plugins/weave_fmt/test_repository.py (+1/-1) breezy/tests/blackbox/test_branches.py (+2/-2) breezy/tests/blackbox/test_push.py (+1/-1) breezy/tests/blackbox/test_reconfigure.py (+2/-2) breezy/tests/blackbox/test_revision_history.py (+3/-3) breezy/tests/blackbox/test_shared_repository.py (+20/-20) breezy/tests/blackbox/test_switch.py (+1/-1) breezy/tests/blackbox/test_upgrade.py (+1/-1) breezy/tests/commands/test_init_repository.py (+3/-3) doc/developers/HACKING.txt (+1/-1) doc/developers/contribution-quickstart.txt (+1/-1) doc/developers/development-repo.txt (+3/-3) doc/developers/packrepo.txt (+3/-3) doc/en/admin-guide/advanced.txt (+1/-1) doc/en/admin-guide/simple-setups.txt (+1/-1) doc/en/mini-tutorial/index.txt (+2/-2) doc/en/release-notes/brz-3.1.txt (+5/-0) doc/en/tutorials/centralized_workflow.txt (+2/-2) doc/en/user-guide/branching_a_project.txt (+1/-1) doc/en/user-guide/organizing_branches.txt (+1/-1) doc/en/user-guide/organizing_your_workspace.txt (+2/-2) doc/en/user-guide/publishing_a_branch.txt (+3/-3) doc/en/user-guide/reusing_a_checkout.txt (+1/-1) doc/en/user-guide/shared_repository_layouts.txt (+1/-1) doc/en/user-guide/starting_a_project.txt (+2/-2) doc/en/user-guide/svn_plugin.txt (+2/-2) tools/win32/build_release.py (+2/-1) |
To merge this branch: | bzr merge lp:~jelmer/brz/init-shared-repo |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Martin Packman | Approve | ||
Review via email: mp+372116@code.launchpad.net |
Commit message
Rename init-repo to init-shared-repo.
Description of the change
Rename init-repo to init-shared-repo.
(but leave an alias in place)
This should make it clearer that this command only creates a specific kind of repositories.
To post a comment you must log in.
Revision history for this message
The Breezy Bot (the-breezy-bot) wrote : | # |
Running landing tests failed
https:/
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'breezy/builtins.py' | |||
2 | --- breezy/builtins.py 2019-09-27 01:02:32 +0000 | |||
3 | +++ breezy/builtins.py 2019-10-13 18:08:15 +0000 | |||
4 | @@ -2033,7 +2033,7 @@ | |||
5 | 2033 | brz commit -m "imported project" | 2033 | brz commit -m "imported project" |
6 | 2034 | """ | 2034 | """ |
7 | 2035 | 2035 | ||
9 | 2036 | _see_also = ['init-repository', 'branch', 'checkout'] | 2036 | _see_also = ['init-shared-repository', 'branch', 'checkout'] |
10 | 2037 | takes_args = ['location?'] | 2037 | takes_args = ['location?'] |
11 | 2038 | takes_options = [ | 2038 | takes_options = [ |
12 | 2039 | Option('create-prefix', | 2039 | Option('create-prefix', |
13 | @@ -2131,7 +2131,7 @@ | |||
14 | 2131 | self.outf.write(gettext("Using shared repository: %s\n") % url) | 2131 | self.outf.write(gettext("Using shared repository: %s\n") % url) |
15 | 2132 | 2132 | ||
16 | 2133 | 2133 | ||
18 | 2134 | class cmd_init_repository(Command): | 2134 | class cmd_init_shared_repository(Command): |
19 | 2135 | __doc__ = """Create a shared repository for branches to share storage space. | 2135 | __doc__ = """Create a shared repository for branches to share storage space. |
20 | 2136 | 2136 | ||
21 | 2137 | New branches created under the repository directory will store their | 2137 | New branches created under the repository directory will store their |
22 | @@ -2149,7 +2149,7 @@ | |||
23 | 2149 | :Examples: | 2149 | :Examples: |
24 | 2150 | Create a shared repository holding just branches:: | 2150 | Create a shared repository holding just branches:: |
25 | 2151 | 2151 | ||
27 | 2152 | brz init-repo --no-trees repo | 2152 | brz init-shared-repo --no-trees repo |
28 | 2153 | brz init repo/trunk | 2153 | brz init repo/trunk |
29 | 2154 | 2154 | ||
30 | 2155 | Make a lightweight checkout elsewhere:: | 2155 | Make a lightweight checkout elsewhere:: |
31 | @@ -2173,7 +2173,7 @@ | |||
32 | 2173 | help='Branches in the repository will default to' | 2173 | help='Branches in the repository will default to' |
33 | 2174 | ' not having a working tree.'), | 2174 | ' not having a working tree.'), |
34 | 2175 | ] | 2175 | ] |
36 | 2176 | aliases = ["init-repo"] | 2176 | aliases = ["init-shared-repo", "init-repo"] |
37 | 2177 | 2177 | ||
38 | 2178 | def run(self, location, format=None, no_trees=False): | 2178 | def run(self, location, format=None, no_trees=False): |
39 | 2179 | if format is None: | 2179 | if format is None: |
40 | 2180 | 2180 | ||
41 | === modified file 'breezy/errors.py' | |||
42 | --- breezy/errors.py 2019-06-18 11:21:15 +0000 | |||
43 | +++ breezy/errors.py 2019-10-13 18:08:15 +0000 | |||
44 | @@ -1872,6 +1872,13 @@ | |||
45 | 1872 | """ | 1872 | """ |
46 | 1873 | 1873 | ||
47 | 1874 | 1874 | ||
48 | 1875 | class SharedRepositoriesUnsupported(UnsupportedOperation): | ||
49 | 1876 | _fmt = "Shared repositories are not supported by %(format)r." | ||
50 | 1877 | |||
51 | 1878 | def __init__(self, format): | ||
52 | 1879 | BzrError.__init__(self, format=format) | ||
53 | 1880 | |||
54 | 1881 | |||
55 | 1875 | class GhostTagsNotSupported(BzrError): | 1882 | class GhostTagsNotSupported(BzrError): |
56 | 1876 | 1883 | ||
57 | 1877 | _fmt = "Ghost tags not supported by format %(format)r." | 1884 | _fmt = "Ghost tags not supported by format %(format)r." |
58 | 1878 | 1885 | ||
59 | === modified file 'breezy/git/dir.py' | |||
60 | --- breezy/git/dir.py 2019-08-11 16:27:38 +0000 | |||
61 | +++ breezy/git/dir.py 2019-10-13 18:08:15 +0000 | |||
62 | @@ -381,6 +381,9 @@ | |||
63 | 381 | stack_on_pwd=None, repo_format_name=None, | 381 | stack_on_pwd=None, repo_format_name=None, |
64 | 382 | make_working_trees=None, | 382 | make_working_trees=None, |
65 | 383 | shared_repo=False, vfs_only=False): | 383 | shared_repo=False, vfs_only=False): |
66 | 384 | if shared_repo: | ||
67 | 385 | raise brz_errors.SharedRepositoriesUnsupported(self) | ||
68 | 386 | |||
69 | 384 | def make_directory(transport): | 387 | def make_directory(transport): |
70 | 385 | transport.mkdir('.') | 388 | transport.mkdir('.') |
71 | 386 | return transport | 389 | return transport |
72 | 387 | 390 | ||
73 | === modified file 'breezy/git/tests/test_dir.py' | |||
74 | --- breezy/git/tests/test_dir.py 2018-11-11 04:08:32 +0000 | |||
75 | +++ breezy/git/tests/test_dir.py 2019-10-13 18:08:15 +0000 | |||
76 | @@ -27,6 +27,7 @@ | |||
77 | 27 | errors, | 27 | errors, |
78 | 28 | urlutils, | 28 | urlutils, |
79 | 29 | ) | 29 | ) |
80 | 30 | from ...transport import get_transport | ||
81 | 30 | from ...tests import TestSkipped | 31 | from ...tests import TestSkipped |
82 | 31 | 32 | ||
83 | 32 | from .. import ( | 33 | from .. import ( |
84 | @@ -76,6 +77,13 @@ | |||
85 | 76 | self.assertEqual(gd.control_url.rstrip('/'), | 77 | self.assertEqual(gd.control_url.rstrip('/'), |
86 | 77 | urlutils.local_path_to_url(os.path.abspath(gitrepo.controldir()))) | 78 | urlutils.local_path_to_url(os.path.abspath(gitrepo.controldir()))) |
87 | 78 | 79 | ||
88 | 80 | def test_shared_repository(self): | ||
89 | 81 | t = get_transport('.') | ||
90 | 82 | self.assertRaises( | ||
91 | 83 | errors.SharedRepositoriesUnsupported, | ||
92 | 84 | dir.LocalGitControlDirFormat().initialize_on_transport_ex, t, | ||
93 | 85 | shared_repo=True) | ||
94 | 86 | |||
95 | 79 | 87 | ||
96 | 80 | class TestGitDirFormat(tests.TestCase): | 88 | class TestGitDirFormat(tests.TestCase): |
97 | 81 | 89 | ||
98 | 82 | 90 | ||
99 | === modified file 'breezy/help_topics/__init__.py' | |||
100 | --- breezy/help_topics/__init__.py 2019-06-16 19:53:27 +0000 | |||
101 | +++ breezy/help_topics/__init__.py 2019-10-13 18:08:15 +0000 | |||
102 | @@ -453,11 +453,11 @@ | |||
103 | 453 | generally a large space saving. For some operations (e.g. branching | 453 | generally a large space saving. For some operations (e.g. branching |
104 | 454 | within the repository) this translates in to a large time saving. | 454 | within the repository) this translates in to a large time saving. |
105 | 455 | 455 | ||
111 | 456 | To create a shared repository use the init-repository command (or the alias | 456 | To create a shared repository use the init-shared-repository command (or the |
112 | 457 | init-repo). This command takes the location of the repository to create. This | 457 | alias init-shared-repo). This command takes the location of the repository to |
113 | 458 | means that 'brz init-repository repo' will create a directory named 'repo', | 458 | create. This means that 'brz init-shared-repository repo' will create a |
114 | 459 | which contains a shared repository. Any new branches that are created in this | 459 | directory named 'repo', which contains a shared repository. Any new branches |
115 | 460 | directory will then use it for storage. | 460 | that are created in this directory will then use it for storage. |
116 | 461 | 461 | ||
117 | 462 | It is a good idea to create a repository whenever you might create more | 462 | It is a good idea to create a repository whenever you might create more |
118 | 463 | than one branch of a project. This is true for both working areas where you | 463 | than one branch of a project. This is true for both working areas where you |
119 | @@ -466,12 +466,12 @@ | |||
120 | 466 | trees. Since the files in the branch will not be edited directly there is no | 466 | trees. Since the files in the branch will not be edited directly there is no |
121 | 467 | need to use up disk space for a working tree. To create a repository in which | 467 | need to use up disk space for a working tree. To create a repository in which |
122 | 468 | the branches will not have working trees pass the '--no-trees' option to | 468 | the branches will not have working trees pass the '--no-trees' option to |
124 | 469 | 'init-repository'. | 469 | 'init-shared-repository'. |
125 | 470 | 470 | ||
126 | 471 | Related commands:: | 471 | Related commands:: |
127 | 472 | 472 | ||
130 | 473 | init-repository Create a shared repository. Use --no-trees to create one | 473 | init-shared-repository Create a shared repository. Use --no-trees to create |
131 | 474 | in which new branches won't get a working tree. | 474 | one in which new branches won't get a working tree. |
132 | 475 | """ | 475 | """ |
133 | 476 | 476 | ||
134 | 477 | 477 | ||
135 | 478 | 478 | ||
136 | === modified file 'breezy/plugins/bash_completion/tests/test_bashcomp.py' | |||
137 | --- breezy/plugins/bash_completion/tests/test_bashcomp.py 2018-11-11 04:08:32 +0000 | |||
138 | +++ breezy/plugins/bash_completion/tests/test_bashcomp.py 2019-10-13 18:08:15 +0000 | |||
139 | @@ -117,7 +117,8 @@ | |||
140 | 117 | 117 | ||
141 | 118 | def test_cmd_ini(self): | 118 | def test_cmd_ini(self): |
142 | 119 | self.complete(['brz', 'ini']) | 119 | self.complete(['brz', 'ini']) |
144 | 120 | self.assertCompletionContains('init', 'init-repo', 'init-repository') | 120 | self.assertCompletionContains( |
145 | 121 | 'init', 'init-shared-repo', 'init-shared-repository') | ||
146 | 121 | self.assertCompletionOmits('commit') | 122 | self.assertCompletionOmits('commit') |
147 | 122 | 123 | ||
148 | 123 | def test_init_opts(self): | 124 | def test_init_opts(self): |
149 | @@ -297,8 +298,9 @@ | |||
150 | 297 | def test_commands(self): | 298 | def test_commands(self): |
151 | 298 | dc = DataCollector() | 299 | dc = DataCollector() |
152 | 299 | dc.commands() | 300 | dc.commands() |
155 | 300 | self.assertSubset(['init', 'init-repo', 'init-repository'], | 301 | self.assertSubset( |
156 | 301 | dc.data.all_command_aliases()) | 302 | ['init', 'init-shared-repo', 'init-shared-repository'], |
157 | 303 | dc.data.all_command_aliases()) | ||
158 | 302 | 304 | ||
159 | 303 | def test_commands_from_plugins(self): | 305 | def test_commands_from_plugins(self): |
160 | 304 | dc = DataCollector() | 306 | dc = DataCollector() |
161 | 305 | 307 | ||
162 | === modified file 'breezy/plugins/weave_fmt/test_repository.py' | |||
163 | --- breezy/plugins/weave_fmt/test_repository.py 2019-06-29 19:54:32 +0000 | |||
164 | +++ breezy/plugins/weave_fmt/test_repository.py 2019-10-13 18:08:15 +0000 | |||
165 | @@ -257,7 +257,7 @@ | |||
166 | 257 | class TestInterWeaveRepo(TestCaseWithTransport): | 257 | class TestInterWeaveRepo(TestCaseWithTransport): |
167 | 258 | 258 | ||
168 | 259 | def test_make_repository(self): | 259 | def test_make_repository(self): |
170 | 260 | out, err = self.run_bzr("init-repository --format=weave a") | 260 | out, err = self.run_bzr("init-shared-repository --format=weave a") |
171 | 261 | self.assertEqual(out, | 261 | self.assertEqual(out, |
172 | 262 | """Standalone tree (format: weave) | 262 | """Standalone tree (format: weave) |
173 | 263 | Location: | 263 | Location: |
174 | 264 | 264 | ||
175 | === modified file 'breezy/tests/blackbox/test_branches.py' | |||
176 | --- breezy/tests/blackbox/test_branches.py 2018-07-07 15:06:42 +0000 | |||
177 | +++ breezy/tests/blackbox/test_branches.py 2019-10-13 18:08:15 +0000 | |||
178 | @@ -32,14 +32,14 @@ | |||
179 | 32 | 32 | ||
180 | 33 | def test_no_branch(self): | 33 | def test_no_branch(self): |
181 | 34 | # Listing the branches in a control directory without branches. | 34 | # Listing the branches in a control directory without branches. |
183 | 35 | self.run_bzr('init-repo a') | 35 | self.run_bzr('init-shared-repo a') |
184 | 36 | out, err = self.run_bzr('branches a') | 36 | out, err = self.run_bzr('branches a') |
185 | 37 | self.assertEqual(out, "") | 37 | self.assertEqual(out, "") |
186 | 38 | 38 | ||
187 | 39 | def test_default_current_dir(self): | 39 | def test_default_current_dir(self): |
188 | 40 | # "brz branches" list the branches in the current directory | 40 | # "brz branches" list the branches in the current directory |
189 | 41 | # if no location was specified. | 41 | # if no location was specified. |
191 | 42 | self.run_bzr('init-repo a') | 42 | self.run_bzr('init-shared-repo a') |
192 | 43 | out, err = self.run_bzr('branches', working_dir='a') | 43 | out, err = self.run_bzr('branches', working_dir='a') |
193 | 44 | self.assertEqual(out, "") | 44 | self.assertEqual(out, "") |
194 | 45 | 45 | ||
195 | 46 | 46 | ||
196 | === modified file 'breezy/tests/blackbox/test_push.py' | |||
197 | --- breezy/tests/blackbox/test_push.py 2019-02-16 04:57:50 +0000 | |||
198 | +++ breezy/tests/blackbox/test_push.py 2019-10-13 18:08:15 +0000 | |||
199 | @@ -949,7 +949,7 @@ | |||
200 | 949 | 949 | ||
201 | 950 | def test_push_with_revspec(self): | 950 | def test_push_with_revspec(self): |
202 | 951 | self.run_script(""" | 951 | self.run_script(""" |
204 | 952 | $ brz init-repo . | 952 | $ brz init-shared-repo . |
205 | 953 | Shared repository with trees (format: 2a) | 953 | Shared repository with trees (format: 2a) |
206 | 954 | Location: | 954 | Location: |
207 | 955 | shared repository: . | 955 | shared repository: . |
208 | 956 | 956 | ||
209 | === modified file 'breezy/tests/blackbox/test_reconfigure.py' | |||
210 | --- breezy/tests/blackbox/test_reconfigure.py 2018-11-11 04:08:32 +0000 | |||
211 | +++ breezy/tests/blackbox/test_reconfigure.py 2019-10-13 18:08:15 +0000 | |||
212 | @@ -190,7 +190,7 @@ | |||
213 | 190 | $ echo foo > branch/foo | 190 | $ echo foo > branch/foo |
214 | 191 | $ brz add -q branch/foo | 191 | $ brz add -q branch/foo |
215 | 192 | $ brz commit -q -m msg branch | 192 | $ brz commit -q -m msg branch |
217 | 193 | $ brz init-repo -q . | 193 | $ brz init-shared-repo -q . |
218 | 194 | $ brz reconfigure --branch --use-shared branch | 194 | $ brz reconfigure --branch --use-shared branch |
219 | 195 | $ brz info branch | 195 | $ brz info branch |
220 | 196 | Repository branch (format: ...) | 196 | Repository branch (format: ...) |
221 | @@ -205,7 +205,7 @@ | |||
222 | 205 | $ echo foo > branch/foo | 205 | $ echo foo > branch/foo |
223 | 206 | $ brz add -q branch/foo | 206 | $ brz add -q branch/foo |
224 | 207 | $ brz commit -q -m msg branch | 207 | $ brz commit -q -m msg branch |
226 | 208 | $ brz init-repo -q . | 208 | $ brz init-shared-repo -q . |
227 | 209 | $ brz reconfigure --use-shared --branch branch | 209 | $ brz reconfigure --use-shared --branch branch |
228 | 210 | $ brz info branch | 210 | $ brz info branch |
229 | 211 | Repository branch (format: ...) | 211 | Repository branch (format: ...) |
230 | 212 | 212 | ||
231 | === modified file 'breezy/tests/blackbox/test_revision_history.py' | |||
232 | --- breezy/tests/blackbox/test_revision_history.py 2018-07-07 15:06:42 +0000 | |||
233 | +++ breezy/tests/blackbox/test_revision_history.py 2019-10-13 18:08:15 +0000 | |||
234 | @@ -55,14 +55,14 @@ | |||
235 | 55 | def test_revision_history_with_repo_branch(self): | 55 | def test_revision_history_with_repo_branch(self): |
236 | 56 | """With a repository branch location.""" | 56 | """With a repository branch location.""" |
237 | 57 | self._build_branch() | 57 | self._build_branch() |
239 | 58 | self.run_bzr('init-repo repo') | 58 | self.run_bzr('init-shared-repo repo') |
240 | 59 | self.run_bzr('branch test repo/test') | 59 | self.run_bzr('branch test repo/test') |
241 | 60 | self._check_revision_history('repo/test') | 60 | self._check_revision_history('repo/test') |
242 | 61 | 61 | ||
243 | 62 | def test_revision_history_with_checkout(self): | 62 | def test_revision_history_with_checkout(self): |
244 | 63 | """With a repository branch checkout location.""" | 63 | """With a repository branch checkout location.""" |
245 | 64 | self._build_branch() | 64 | self._build_branch() |
247 | 65 | self.run_bzr('init-repo repo') | 65 | self.run_bzr('init-shared-repo repo') |
248 | 66 | self.run_bzr('branch test repo/test') | 66 | self.run_bzr('branch test repo/test') |
249 | 67 | self.run_bzr('checkout repo/test test-checkout') | 67 | self.run_bzr('checkout repo/test test-checkout') |
250 | 68 | self._check_revision_history('test-checkout') | 68 | self._check_revision_history('test-checkout') |
251 | @@ -70,7 +70,7 @@ | |||
252 | 70 | def test_revision_history_with_lightweight_checkout(self): | 70 | def test_revision_history_with_lightweight_checkout(self): |
253 | 71 | """With a repository branch lightweight checkout location.""" | 71 | """With a repository branch lightweight checkout location.""" |
254 | 72 | self._build_branch() | 72 | self._build_branch() |
256 | 73 | self.run_bzr('init-repo repo') | 73 | self.run_bzr('init-shared-repo repo') |
257 | 74 | self.run_bzr('branch test repo/test') | 74 | self.run_bzr('branch test repo/test') |
258 | 75 | self.run_bzr('checkout --lightweight repo/test test-checkout') | 75 | self.run_bzr('checkout --lightweight repo/test test-checkout') |
259 | 76 | self._check_revision_history('test-checkout') | 76 | self._check_revision_history('test-checkout') |
260 | 77 | 77 | ||
261 | === modified file 'breezy/tests/blackbox/test_shared_repository.py' | |||
262 | --- breezy/tests/blackbox/test_shared_repository.py 2018-11-11 04:08:32 +0000 | |||
263 | +++ breezy/tests/blackbox/test_shared_repository.py 2019-10-13 18:08:15 +0000 | |||
264 | @@ -28,7 +28,7 @@ | |||
265 | 28 | class TestSharedRepo(TestCaseInTempDir): | 28 | class TestSharedRepo(TestCaseInTempDir): |
266 | 29 | 29 | ||
267 | 30 | def test_make_repository(self): | 30 | def test_make_repository(self): |
269 | 31 | out, err = self.run_bzr("init-repository a") | 31 | out, err = self.run_bzr("init-shared-repository a") |
270 | 32 | self.assertEqual(out, | 32 | self.assertEqual(out, |
271 | 33 | """Shared repository with trees (format: 2a) | 33 | """Shared repository with trees (format: 2a) |
272 | 34 | Location: | 34 | Location: |
273 | @@ -41,7 +41,7 @@ | |||
274 | 41 | self.assertRaises(errors.NoWorkingTree, dir.open_workingtree) | 41 | self.assertRaises(errors.NoWorkingTree, dir.open_workingtree) |
275 | 42 | 42 | ||
276 | 43 | def test_make_repository_quiet(self): | 43 | def test_make_repository_quiet(self): |
278 | 44 | out, err = self.run_bzr("init-repository a -q") | 44 | out, err = self.run_bzr("init-shared-repository a -q") |
279 | 45 | self.assertEqual(out, "") | 45 | self.assertEqual(out, "") |
280 | 46 | self.assertEqual(err, "") | 46 | self.assertEqual(err, "") |
281 | 47 | dir = ControlDir.open('a') | 47 | dir = ControlDir.open('a') |
282 | @@ -54,12 +54,12 @@ | |||
283 | 54 | 54 | ||
284 | 55 | (Malone #38331) | 55 | (Malone #38331) |
285 | 56 | """ | 56 | """ |
287 | 57 | out, err = self.run_bzr("init-repository .") | 57 | out, err = self.run_bzr("init-shared-repository .") |
288 | 58 | dir = ControlDir.open('.') | 58 | dir = ControlDir.open('.') |
289 | 59 | self.assertTrue(dir.open_repository()) | 59 | self.assertTrue(dir.open_repository()) |
290 | 60 | 60 | ||
291 | 61 | def test_init(self): | 61 | def test_init(self): |
293 | 62 | self.run_bzr("init-repo a") | 62 | self.run_bzr("init-shared-repo a") |
294 | 63 | self.run_bzr("init --format=default a/b") | 63 | self.run_bzr("init --format=default a/b") |
295 | 64 | dir = ControlDir.open('a') | 64 | dir = ControlDir.open('a') |
296 | 65 | self.assertIs(dir.open_repository().is_shared(), True) | 65 | self.assertIs(dir.open_repository().is_shared(), True) |
297 | @@ -71,7 +71,7 @@ | |||
298 | 71 | wt = bdir.open_workingtree() | 71 | wt = bdir.open_workingtree() |
299 | 72 | 72 | ||
300 | 73 | def test_branch(self): | 73 | def test_branch(self): |
302 | 74 | self.run_bzr("init-repo a") | 74 | self.run_bzr("init-shared-repo a") |
303 | 75 | self.run_bzr("init --format=default a/b") | 75 | self.run_bzr("init --format=default a/b") |
304 | 76 | self.run_bzr('branch a/b a/c') | 76 | self.run_bzr('branch a/b a/c') |
305 | 77 | cdir = ControlDir.open('a/c') | 77 | cdir = ControlDir.open('a/c') |
306 | @@ -80,7 +80,7 @@ | |||
307 | 80 | cdir.open_workingtree() | 80 | cdir.open_workingtree() |
308 | 81 | 81 | ||
309 | 82 | def test_branch_tree(self): | 82 | def test_branch_tree(self): |
311 | 83 | self.run_bzr("init-repo --trees a") | 83 | self.run_bzr("init-shared-repo --trees a") |
312 | 84 | self.run_bzr("init --format=default b") | 84 | self.run_bzr("init --format=default b") |
313 | 85 | with open('b/hello', 'wt') as f: | 85 | with open('b/hello', 'wt') as f: |
314 | 86 | f.write('bar') | 86 | f.write('bar') |
315 | @@ -96,28 +96,28 @@ | |||
316 | 96 | 96 | ||
317 | 97 | def test_trees_default(self): | 97 | def test_trees_default(self): |
318 | 98 | # 0.15 switched to trees by default | 98 | # 0.15 switched to trees by default |
320 | 99 | self.run_bzr("init-repo repo") | 99 | self.run_bzr("init-shared-repo repo") |
321 | 100 | repo = ControlDir.open("repo").open_repository() | 100 | repo = ControlDir.open("repo").open_repository() |
322 | 101 | self.assertEqual(True, repo.make_working_trees()) | 101 | self.assertEqual(True, repo.make_working_trees()) |
323 | 102 | 102 | ||
324 | 103 | def test_trees_argument(self): | 103 | def test_trees_argument(self): |
325 | 104 | # Supplying the --trees argument should be harmless, | 104 | # Supplying the --trees argument should be harmless, |
326 | 105 | # as it was previously non-default we need to get it right. | 105 | # as it was previously non-default we need to get it right. |
328 | 106 | self.run_bzr("init-repo --trees trees") | 106 | self.run_bzr("init-shared-repo --trees trees") |
329 | 107 | repo = ControlDir.open("trees").open_repository() | 107 | repo = ControlDir.open("trees").open_repository() |
330 | 108 | self.assertEqual(True, repo.make_working_trees()) | 108 | self.assertEqual(True, repo.make_working_trees()) |
331 | 109 | 109 | ||
332 | 110 | def test_no_trees_argument(self): | 110 | def test_no_trees_argument(self): |
333 | 111 | # --no-trees should make it so that there is no working tree | 111 | # --no-trees should make it so that there is no working tree |
335 | 112 | self.run_bzr("init-repo --no-trees notrees") | 112 | self.run_bzr("init-shared-repo --no-trees notrees") |
336 | 113 | repo = ControlDir.open("notrees").open_repository() | 113 | repo = ControlDir.open("notrees").open_repository() |
337 | 114 | self.assertEqual(False, repo.make_working_trees()) | 114 | self.assertEqual(False, repo.make_working_trees()) |
338 | 115 | 115 | ||
339 | 116 | def test_init_repo_smart_acceptance(self): | 116 | def test_init_repo_smart_acceptance(self): |
342 | 117 | # The amount of hpss calls made on init-repo to a smart server should | 117 | # The amount of hpss calls made on init-shared-repo to a smart server |
343 | 118 | # be fixed. | 118 | # should be fixed. |
344 | 119 | self.setup_smart_server_with_call_log() | 119 | self.setup_smart_server_with_call_log() |
346 | 120 | self.run_bzr(['init-repo', self.get_url('repo')]) | 120 | self.run_bzr(['init-shared-repo', self.get_url('repo')]) |
347 | 121 | # This figure represent the amount of work to perform this use case. It | 121 | # This figure represent the amount of work to perform this use case. It |
348 | 122 | # is entirely ok to reduce this number if a test fails due to rpc_count | 122 | # is entirely ok to reduce this number if a test fails due to rpc_count |
349 | 123 | # being too low. If rpc_count increases, more network roundtrips have | 123 | # being too low. If rpc_count increases, more network roundtrips have |
350 | @@ -128,7 +128,7 @@ | |||
351 | 128 | self.assertThat(self.hpss_calls, ContainsNoVfsCalls) | 128 | self.assertThat(self.hpss_calls, ContainsNoVfsCalls) |
352 | 129 | 129 | ||
353 | 130 | def test_notification_on_branch_from_repository(self): | 130 | def test_notification_on_branch_from_repository(self): |
355 | 131 | out, err = self.run_bzr("init-repository -q a") | 131 | out, err = self.run_bzr("init-shared-repository -q a") |
356 | 132 | self.assertEqual(out, "") | 132 | self.assertEqual(out, "") |
357 | 133 | self.assertEqual(err, "") | 133 | self.assertEqual(err, "") |
358 | 134 | dir = ControlDir.open('a') | 134 | dir = ControlDir.open('a') |
359 | @@ -150,19 +150,19 @@ | |||
360 | 150 | ControlDir.hooks.install_named_hook( | 150 | ControlDir.hooks.install_named_hook( |
361 | 151 | 'post_repo_init', calls.append, None) | 151 | 'post_repo_init', calls.append, None) |
362 | 152 | self.assertLength(0, calls) | 152 | self.assertLength(0, calls) |
364 | 153 | self.run_bzr("init-repository a") | 153 | self.run_bzr("init-shared-repository a") |
365 | 154 | self.assertLength(1, calls) | 154 | self.assertLength(1, calls) |
366 | 155 | 155 | ||
367 | 156 | def test_init_repo_without_username(self): | 156 | def test_init_repo_without_username(self): |
369 | 157 | """Ensure init-repo works if username is not set. | 157 | """Ensure init-shared-repo works if username is not set. |
370 | 158 | """ | 158 | """ |
371 | 159 | # brz makes user specified whoami mandatory for operations | 159 | # brz makes user specified whoami mandatory for operations |
376 | 160 | # like commit as whoami is recorded. init-repo however is not so final | 160 | # like commit as whoami is recorded. init-shared-repo however is not so |
377 | 161 | # and uses whoami only in a lock file. Without whoami the login name | 161 | # final and uses whoami only in a lock file. Without whoami the login name |
378 | 162 | # is used. This test is to ensure that init-repo passes even when whoami | 162 | # is used. This test is to ensure that init-shared-repo passes even |
379 | 163 | # is not available. | 163 | # when whoami is not available. |
380 | 164 | self.overrideEnv('EMAIL', None) | 164 | self.overrideEnv('EMAIL', None) |
381 | 165 | self.overrideEnv('BRZ_EMAIL', None) | 165 | self.overrideEnv('BRZ_EMAIL', None) |
383 | 166 | out, err = self.run_bzr(['init-repo', 'foo']) | 166 | out, err = self.run_bzr(['init-shared-repo', 'foo']) |
384 | 167 | self.assertEqual(err, '') | 167 | self.assertEqual(err, '') |
385 | 168 | self.assertTrue(os.path.exists('foo')) | 168 | self.assertTrue(os.path.exists('foo')) |
386 | 169 | 169 | ||
387 | === modified file 'breezy/tests/blackbox/test_switch.py' | |||
388 | --- breezy/tests/blackbox/test_switch.py 2019-02-09 02:59:15 +0000 | |||
389 | +++ breezy/tests/blackbox/test_switch.py 2019-10-13 18:08:15 +0000 | |||
390 | @@ -407,7 +407,7 @@ | |||
391 | 407 | super(TestSwitchParentLocationBase, self).setUp() | 407 | super(TestSwitchParentLocationBase, self).setUp() |
392 | 408 | self.script_runner = script.ScriptRunner() | 408 | self.script_runner = script.ScriptRunner() |
393 | 409 | self.script_runner.run_script(self, ''' | 409 | self.script_runner.run_script(self, ''' |
395 | 410 | $ brz init-repo --no-trees repo | 410 | $ brz init-shared-repo --no-trees repo |
396 | 411 | Shared repository... | 411 | Shared repository... |
397 | 412 | Location: | 412 | Location: |
398 | 413 | shared repository: repo | 413 | shared repository: repo |
399 | 414 | 414 | ||
400 | === modified file 'breezy/tests/blackbox/test_upgrade.py' | |||
401 | --- breezy/tests/blackbox/test_upgrade.py 2018-11-11 04:08:32 +0000 | |||
402 | +++ breezy/tests/blackbox/test_upgrade.py 2019-10-13 18:08:15 +0000 | |||
403 | @@ -189,7 +189,7 @@ | |||
404 | 189 | RepositoryFormatKnitPack1)) | 189 | RepositoryFormatKnitPack1)) |
405 | 190 | 190 | ||
406 | 191 | def test_upgrade_repo(self): | 191 | def test_upgrade_repo(self): |
408 | 192 | self.run_bzr('init-repository --format=pack-0.92 repo') | 192 | self.run_bzr('init-shared-repository --format=pack-0.92 repo') |
409 | 193 | self.run_bzr('upgrade --format=2a repo') | 193 | self.run_bzr('upgrade --format=2a repo') |
410 | 194 | 194 | ||
411 | 195 | def assertLegalOption(self, option_str): | 195 | def assertLegalOption(self, option_str): |
412 | 196 | 196 | ||
413 | === modified file 'breezy/tests/commands/test_init_repository.py' | |||
414 | --- breezy/tests/commands/test_init_repository.py 2018-11-11 04:08:32 +0000 | |||
415 | +++ breezy/tests/commands/test_init_repository.py 2019-10-13 18:08:15 +0000 | |||
416 | @@ -14,7 +14,7 @@ | |||
417 | 14 | # along with this program; if not, write to the Free Software | 14 | # along with this program; if not, write to the Free Software |
418 | 15 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | 15 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
419 | 16 | 16 | ||
421 | 17 | from ...builtins import cmd_init_repository | 17 | from ...builtins import cmd_init_shared_repository |
422 | 18 | from .. import ( | 18 | from .. import ( |
423 | 19 | transport_util, | 19 | transport_util, |
424 | 20 | ui_testing, | 20 | ui_testing, |
425 | @@ -27,8 +27,8 @@ | |||
426 | 27 | super(TestInitRepository, self).setUp() | 27 | super(TestInitRepository, self).setUp() |
427 | 28 | self.start_logging_connections() | 28 | self.start_logging_connections() |
428 | 29 | 29 | ||
431 | 30 | def test_init_repository(self): | 30 | def test_init_shared_repository(self): |
432 | 31 | cmd = cmd_init_repository() | 31 | cmd = cmd_init_shared_repository() |
433 | 32 | # We don't care about the ouput but 'outf' should be defined | 32 | # We don't care about the ouput but 'outf' should be defined |
434 | 33 | cmd.outf = ui_testing.StringIOWithEncoding() | 33 | cmd.outf = ui_testing.StringIOWithEncoding() |
435 | 34 | cmd.run(self.get_url()) | 34 | cmd.run(self.get_url()) |
436 | 35 | 35 | ||
437 | === modified file 'doc/developers/HACKING.txt' | |||
438 | --- doc/developers/HACKING.txt 2018-11-26 00:07:02 +0000 | |||
439 | +++ doc/developers/HACKING.txt 2019-10-13 18:08:15 +0000 | |||
440 | @@ -87,7 +87,7 @@ | |||
441 | 87 | copy of bzr.dev?`_.) | 87 | copy of bzr.dev?`_.) |
442 | 88 | :: | 88 | :: |
443 | 89 | 89 | ||
445 | 90 | $ brz init-repo ~/bzr | 90 | $ brz init-shared-repo ~/bzr |
446 | 91 | $ cd ~/bzr | 91 | $ cd ~/bzr |
447 | 92 | $ brz branch lp:brz bzr.dev | 92 | $ brz branch lp:brz bzr.dev |
448 | 93 | 93 | ||
449 | 94 | 94 | ||
450 | === modified file 'doc/developers/contribution-quickstart.txt' | |||
451 | --- doc/developers/contribution-quickstart.txt 2019-02-15 17:41:17 +0000 | |||
452 | +++ doc/developers/contribution-quickstart.txt 2019-10-13 18:08:15 +0000 | |||
453 | @@ -33,7 +33,7 @@ | |||
454 | 33 | First, get a local copy of Bazaar:: | 33 | First, get a local copy of Bazaar:: |
455 | 34 | 34 | ||
456 | 35 | $ cd $HOME | 35 | $ cd $HOME |
458 | 36 | $ brz init-repo brz | 36 | $ brz init-shared-repo brz |
459 | 37 | $ cd brz | 37 | $ cd brz |
460 | 38 | $ brz branch lp:brz brz.dev | 38 | $ brz branch lp:brz brz.dev |
461 | 39 | 39 | ||
462 | 40 | 40 | ||
463 | === modified file 'doc/developers/development-repo.txt' | |||
464 | --- doc/developers/development-repo.txt 2019-02-14 03:30:18 +0000 | |||
465 | +++ doc/developers/development-repo.txt 2019-10-13 18:08:15 +0000 | |||
466 | @@ -89,14 +89,14 @@ | |||
467 | 89 | for branches, you can make it a ``development`` repository like this:: | 89 | for branches, you can make it a ``development`` repository like this:: |
468 | 90 | 90 | ||
469 | 91 | cd my-repo | 91 | cd my-repo |
471 | 92 | bzr init-repo --development . | 92 | bzr init-shared-repo --development . |
472 | 93 | cd my-stuff | 93 | cd my-stuff |
473 | 94 | bzr init | 94 | bzr init |
474 | 95 | bzr add | 95 | bzr add |
475 | 96 | bzr commit -m "initial import" | 96 | bzr commit -m "initial import" |
476 | 97 | 97 | ||
477 | 98 | In other words, use the normal sequence of commands but add the | 98 | In other words, use the normal sequence of commands but add the |
479 | 99 | ``--development`` option to the ``init-repo`` command. | 99 | ``--development`` option to the ``init-shared-repo`` command. |
480 | 100 | 100 | ||
481 | 101 | Upgrading an existing branch or repository to development | 101 | Upgrading an existing branch or repository to development |
482 | 102 | --------------------------------------------------------- | 102 | --------------------------------------------------------- |
483 | @@ -141,7 +141,7 @@ | |||
484 | 141 | Here are the commands for the shared repository approach:: | 141 | Here are the commands for the shared repository approach:: |
485 | 142 | 142 | ||
486 | 143 | cd my-repo | 143 | cd my-repo |
488 | 144 | bzr init-repo --development . | 144 | bzr init-shared-repo --development . |
489 | 145 | bzr branch my-source-branch my-new-branch | 145 | bzr branch my-source-branch my-new-branch |
490 | 146 | cd my-new-branch | 146 | cd my-new-branch |
491 | 147 | 147 | ||
492 | 148 | 148 | ||
493 | === modified file 'doc/developers/packrepo.txt' | |||
494 | --- doc/developers/packrepo.txt 2018-11-18 13:43:04 +0000 | |||
495 | +++ doc/developers/packrepo.txt 2019-10-13 18:08:15 +0000 | |||
496 | @@ -58,14 +58,14 @@ | |||
497 | 58 | for branches, you can make it a ``knitpack`` repository like this:: | 58 | for branches, you can make it a ``knitpack`` repository like this:: |
498 | 59 | 59 | ||
499 | 60 | cd my-repo | 60 | cd my-repo |
501 | 61 | bzr init-repo --pack-0.92 . | 61 | bzr init-shared-repo --pack-0.92 . |
502 | 62 | cd my-stuff | 62 | cd my-stuff |
503 | 63 | bzr init | 63 | bzr init |
504 | 64 | bzr add | 64 | bzr add |
505 | 65 | bzr commit -m "initial import" | 65 | bzr commit -m "initial import" |
506 | 66 | 66 | ||
507 | 67 | In other words, use the normal sequence of commands but add the | 67 | In other words, use the normal sequence of commands but add the |
509 | 68 | ``--pack-0.92`` option to the ``init-repo`` command. | 68 | ``--pack-0.92`` option to the ``init-shared-repo`` command. |
510 | 69 | 69 | ||
511 | 70 | Upgrading an existing branch or repository to knitpack format | 70 | Upgrading an existing branch or repository to knitpack format |
512 | 71 | ------------------------------------------------------------- | 71 | ------------------------------------------------------------- |
513 | @@ -110,7 +110,7 @@ | |||
514 | 110 | Here are the commands for the shared repository approach:: | 110 | Here are the commands for the shared repository approach:: |
515 | 111 | 111 | ||
516 | 112 | cd my-repo | 112 | cd my-repo |
518 | 113 | bzr init-repo --pack-0.92 . | 113 | bzr init-shared-repo --pack-0.92 . |
519 | 114 | bzr branch my-source-branch my-new-branch | 114 | bzr branch my-source-branch my-new-branch |
520 | 115 | cd my-new-branch | 115 | cd my-new-branch |
521 | 116 | 116 | ||
522 | 117 | 117 | ||
523 | === modified file 'doc/en/admin-guide/advanced.txt' | |||
524 | --- doc/en/admin-guide/advanced.txt 2009-12-22 05:22:53 +0000 | |||
525 | +++ doc/en/admin-guide/advanced.txt 2019-10-13 18:08:15 +0000 | |||
526 | @@ -61,7 +61,7 @@ | |||
527 | 61 | 61 | ||
528 | 62 | $ mkdir -p /srv/bzr | 62 | $ mkdir -p /srv/bzr |
529 | 63 | $ cd /srv/bzr | 63 | $ cd /srv/bzr |
531 | 64 | $ bzr init-repo --no-trees projectx | 64 | $ bzr init-shared-repo --no-trees projectx |
532 | 65 | $ cd projectx | 65 | $ cd projectx |
533 | 66 | $ bzr branch bzr+ssh://server.example.com/srv/bzr/trunk | 66 | $ bzr branch bzr+ssh://server.example.com/srv/bzr/trunk |
534 | 67 | $ bzr branch trunk australia-integration | 67 | $ bzr branch trunk australia-integration |
535 | 68 | 68 | ||
536 | === modified file 'doc/en/admin-guide/simple-setups.txt' | |||
537 | --- doc/en/admin-guide/simple-setups.txt 2018-11-18 13:20:01 +0000 | |||
538 | +++ doc/en/admin-guide/simple-setups.txt 2019-10-13 18:08:15 +0000 | |||
539 | @@ -55,7 +55,7 @@ | |||
540 | 55 | shared repository to hold all of the branches. To set this up, do:: | 55 | shared repository to hold all of the branches. To set this up, do:: |
541 | 56 | 56 | ||
542 | 57 | $ cd /srv/bzr | 57 | $ cd /srv/bzr |
544 | 58 | $ brz init-repo --no-trees projectx | 58 | $ brz init-shared-repo --no-trees projectx |
545 | 59 | 59 | ||
546 | 60 | The ``--no-trees`` option saves space by not creating a copy of the working | 60 | The ``--no-trees`` option saves space by not creating a copy of the working |
547 | 61 | files on the server's filesystem. Then, any branch created under | 61 | files on the server's filesystem. Then, any branch created under |
548 | 62 | 62 | ||
549 | === modified file 'doc/en/mini-tutorial/index.txt' | |||
550 | --- doc/en/mini-tutorial/index.txt 2017-06-19 19:47:45 +0000 | |||
551 | +++ doc/en/mini-tutorial/index.txt 2019-10-13 18:08:15 +0000 | |||
552 | @@ -65,7 +65,7 @@ | |||
553 | 65 | 65 | ||
554 | 66 | :: | 66 | :: |
555 | 67 | 67 | ||
557 | 68 | $ brz init-repo sample | 68 | $ brz init-shared-repo sample |
558 | 69 | Shared repository with trees (format: 2a) | 69 | Shared repository with trees (format: 2a) |
559 | 70 | Location: | 70 | Location: |
560 | 71 | shared repository: sample | 71 | shared repository: sample |
561 | @@ -193,7 +193,7 @@ | |||
562 | 193 | To work with someone else's code, you can make your own copy of their | 193 | To work with someone else's code, you can make your own copy of their |
563 | 194 | branch. Let's take a real-world example, Breezy's GTK interface:: | 194 | branch. Let's take a real-world example, Breezy's GTK interface:: |
564 | 195 | 195 | ||
566 | 196 | $ brz init-repo ~/brz-gtk | 196 | $ brz init-shared-repo ~/brz-gtk |
567 | 197 | $ brz branch lp:~brz/brz-gtk/trunk ~/brz-gtk/john | 197 | $ brz branch lp:~brz/brz-gtk/trunk ~/brz-gtk/john |
568 | 198 | Branched 292 revision(s). | 198 | Branched 292 revision(s). |
569 | 199 | 199 | ||
570 | 200 | 200 | ||
571 | === modified file 'doc/en/release-notes/brz-3.1.txt' | |||
572 | --- doc/en/release-notes/brz-3.1.txt 2019-10-13 14:28:07 +0000 | |||
573 | +++ doc/en/release-notes/brz-3.1.txt 2019-10-13 18:08:15 +0000 | |||
574 | @@ -16,6 +16,11 @@ | |||
575 | 16 | 16 | ||
576 | 17 | .. These may require users to change the way they use Breezy. | 17 | .. These may require users to change the way they use Breezy. |
577 | 18 | 18 | ||
578 | 19 | * The ``brz init-repo`` command has been renamed to | ||
579 | 20 | ``brz init-shared-repo`` to emphasize that it creates | ||
580 | 21 | shared repositories rather than just any kind of repository. | ||
581 | 22 | (Jelmer Vernooij) | ||
582 | 23 | |||
583 | 19 | New Features | 24 | New Features |
584 | 20 | ************ | 25 | ************ |
585 | 21 | 26 | ||
586 | 22 | 27 | ||
587 | === modified file 'doc/en/tutorials/centralized_workflow.txt' | |||
588 | --- doc/en/tutorials/centralized_workflow.txt 2018-11-18 17:15:39 +0000 | |||
589 | +++ doc/en/tutorials/centralized_workflow.txt 2019-10-13 18:08:15 +0000 | |||
590 | @@ -60,7 +60,7 @@ | |||
591 | 60 | 60 | ||
592 | 61 | :: | 61 | :: |
593 | 62 | 62 | ||
595 | 63 | % brz init-repo --trees ~ | 63 | % brz init-shared-repo --trees ~ |
596 | 64 | 64 | ||
597 | 65 | 65 | ||
598 | 66 | Setting up a remote Repository | 66 | Setting up a remote Repository |
599 | @@ -80,7 +80,7 @@ | |||
600 | 80 | 80 | ||
601 | 81 | :: | 81 | :: |
602 | 82 | 82 | ||
604 | 83 | % brz init-repo --no-trees brz+ssh://centralhost/srv/brz/ | 83 | % brz init-shared-repo --no-trees brz+ssh://centralhost/srv/brz/ |
605 | 84 | 84 | ||
606 | 85 | You can think of this step as similar to setting up a new cvsroot, or | 85 | You can think of this step as similar to setting up a new cvsroot, or |
607 | 86 | subversion repository. The ``--no-trees`` option tells brz to not | 86 | subversion repository. The ``--no-trees`` option tells brz to not |
608 | 87 | 87 | ||
609 | === modified file 'doc/en/user-guide/branching_a_project.txt' | |||
610 | --- doc/en/user-guide/branching_a_project.txt 2017-05-21 13:41:54 +0000 | |||
611 | +++ doc/en/user-guide/branching_a_project.txt 2019-10-13 18:08:15 +0000 | |||
612 | @@ -60,7 +60,7 @@ | |||
613 | 60 | `Organizing your workspace <organizing_your_workspace.html>`_ | 60 | `Organizing your workspace <organizing_your_workspace.html>`_ |
614 | 61 | for a commonly used layout.) For example:: | 61 | for a commonly used layout.) For example:: |
615 | 62 | 62 | ||
617 | 63 | brz init-repo my-repo | 63 | brz init-shared-repo my-repo |
618 | 64 | cd my-repo | 64 | cd my-repo |
619 | 65 | 65 | ||
620 | 66 | You are now ready to grab a branch from someone else and | 66 | You are now ready to grab a branch from someone else and |
621 | 67 | 67 | ||
622 | === modified file 'doc/en/user-guide/organizing_branches.txt' | |||
623 | --- doc/en/user-guide/organizing_branches.txt 2017-05-21 13:41:54 +0000 | |||
624 | +++ doc/en/user-guide/organizing_branches.txt 2019-10-13 18:08:15 +0000 | |||
625 | @@ -14,7 +14,7 @@ | |||
626 | 14 | (or ``checkout``) command to create the mirror. | 14 | (or ``checkout``) command to create the mirror. |
627 | 15 | For example:: | 15 | For example:: |
628 | 16 | 16 | ||
630 | 17 | brz init-repo PROJECT | 17 | brz init-shared-repo PROJECT |
631 | 18 | cd PROJECT | 18 | cd PROJECT |
632 | 19 | brz branch bzr+ssh://centralhost/srv/brz/PROJECT/trunk | 19 | brz branch bzr+ssh://centralhost/srv/brz/PROJECT/trunk |
633 | 20 | 20 | ||
634 | 21 | 21 | ||
635 | === modified file 'doc/en/user-guide/organizing_your_workspace.txt' | |||
636 | --- doc/en/user-guide/organizing_your_workspace.txt 2017-05-21 13:41:54 +0000 | |||
637 | +++ doc/en/user-guide/organizing_your_workspace.txt 2019-10-13 18:08:15 +0000 | |||
638 | @@ -105,7 +105,7 @@ | |||
639 | 105 | 105 | ||
640 | 106 | To set up:: | 106 | To set up:: |
641 | 107 | 107 | ||
643 | 108 | brz init-repo project | 108 | brz init-shared-repo project |
644 | 109 | cd project | 109 | cd project |
645 | 110 | brz branch URL trunk | 110 | brz branch URL trunk |
646 | 111 | 111 | ||
647 | @@ -149,7 +149,7 @@ | |||
648 | 149 | 149 | ||
649 | 150 | To set up:: | 150 | To set up:: |
650 | 151 | 151 | ||
652 | 152 | brz init-repo --no-trees project | 152 | brz init-shared-repo --no-trees project |
653 | 153 | cd project | 153 | cd project |
654 | 154 | brz branch URL trunk | 154 | brz branch URL trunk |
655 | 155 | brz checkout --lightweight trunk sandbox | 155 | brz checkout --lightweight trunk sandbox |
656 | 156 | 156 | ||
657 | === modified file 'doc/en/user-guide/publishing_a_branch.txt' | |||
658 | --- doc/en/user-guide/publishing_a_branch.txt 2017-05-21 13:35:49 +0000 | |||
659 | +++ doc/en/user-guide/publishing_a_branch.txt 2019-10-13 18:08:15 +0000 | |||
660 | @@ -16,7 +16,7 @@ | |||
661 | 16 | store history, not working copies of files, so their enclosing | 16 | store history, not working copies of files, so their enclosing |
662 | 17 | repository is usually creating using the ``no-trees`` option, e.g.:: | 17 | repository is usually creating using the ``no-trees`` option, e.g.:: |
663 | 18 | 18 | ||
665 | 19 | brz init-repo --no-trees bzr+ssh://centralhost/srv/brz/PROJECT | 19 | brz init-shared-repo --no-trees bzr+ssh://centralhost/srv/brz/PROJECT |
666 | 20 | 20 | ||
667 | 21 | You can think of this step as similar to setting up a new cvsroot or | 21 | You can think of this step as similar to setting up a new cvsroot or |
668 | 22 | Subversion repository. However, Breezy gives you more flexibility | 22 | Subversion repository. However, Breezy gives you more flexibility |
669 | @@ -36,7 +36,7 @@ | |||
670 | 36 | 36 | ||
671 | 37 | Here is an example of the first way:: | 37 | Here is an example of the first way:: |
672 | 38 | 38 | ||
674 | 39 | brz init-repo PROJECT (prepare local repository) | 39 | brz init-shared-repo PROJECT (prepare local repository) |
675 | 40 | brz init PROJECT/trunk | 40 | brz init PROJECT/trunk |
676 | 41 | cd PROJECT/trunk | 41 | cd PROJECT/trunk |
677 | 42 | (copy development files) | 42 | (copy development files) |
678 | @@ -48,7 +48,7 @@ | |||
679 | 48 | 48 | ||
680 | 49 | Here is an example of the second way:: | 49 | Here is an example of the second way:: |
681 | 50 | 50 | ||
683 | 51 | brz init-repo PROJECT (prepare local repository) | 51 | brz init-shared-repo PROJECT (prepare local repository) |
684 | 52 | cd PROJECT | 52 | cd PROJECT |
685 | 53 | brz init bzr+ssh://centralhost/srv/brz/PROJECT/trunk | 53 | brz init bzr+ssh://centralhost/srv/brz/PROJECT/trunk |
686 | 54 | brz checkout bzr+ssh://centralhost/srv/brz/PROJECT/trunk | 54 | brz checkout bzr+ssh://centralhost/srv/brz/PROJECT/trunk |
687 | 55 | 55 | ||
688 | === modified file 'doc/en/user-guide/reusing_a_checkout.txt' | |||
689 | --- doc/en/user-guide/reusing_a_checkout.txt 2017-05-21 13:41:54 +0000 | |||
690 | +++ doc/en/user-guide/reusing_a_checkout.txt 2019-10-13 18:08:15 +0000 | |||
691 | @@ -61,7 +61,7 @@ | |||
692 | 61 | with a local tree-less repository. This lets you switch what you | 61 | with a local tree-less repository. This lets you switch what you |
693 | 62 | are working on with ease. For example:: | 62 | are working on with ease. For example:: |
694 | 63 | 63 | ||
696 | 64 | brz init-repo --no-trees PROJECT | 64 | brz init-shared-repo --no-trees PROJECT |
697 | 65 | cd PROJECT | 65 | cd PROJECT |
698 | 66 | brz branch bzr+ssh://centralhost/srv/brz/PROJECT/trunk | 66 | brz branch bzr+ssh://centralhost/srv/brz/PROJECT/trunk |
699 | 67 | brz checkout --lightweight trunk my-sandbox | 67 | brz checkout --lightweight trunk my-sandbox |
700 | 68 | 68 | ||
701 | === modified file 'doc/en/user-guide/shared_repository_layouts.txt' | |||
702 | --- doc/en/user-guide/shared_repository_layouts.txt 2017-05-21 14:47:52 +0000 | |||
703 | +++ doc/en/user-guide/shared_repository_layouts.txt 2019-10-13 18:08:15 +0000 | |||
704 | @@ -54,7 +54,7 @@ | |||
705 | 54 | 54 | ||
706 | 55 | This also works with Breezy. | 55 | This also works with Breezy. |
707 | 56 | However, with Breezy repositories are cheap to create | 56 | However, with Breezy repositories are cheap to create |
709 | 57 | (a simple ``brz init-repo`` away), and their primary benefit is when the | 57 | (a simple ``brz init-shared-repo`` away), and their primary benefit is when the |
710 | 58 | branches share a common ancestry. | 58 | branches share a common ancestry. |
711 | 59 | 59 | ||
712 | 60 | So the preferred way for Breezy would be:: | 60 | So the preferred way for Breezy would be:: |
713 | 61 | 61 | ||
714 | === modified file 'doc/en/user-guide/starting_a_project.txt' | |||
715 | --- doc/en/user-guide/starting_a_project.txt 2017-05-21 13:41:54 +0000 | |||
716 | +++ doc/en/user-guide/starting_a_project.txt 2019-10-13 18:08:15 +0000 | |||
717 | @@ -39,7 +39,7 @@ | |||
718 | 39 | idea to create a repository for the project at the top level and to nest | 39 | idea to create a repository for the project at the top level and to nest |
719 | 40 | a *main* branch within it like this:: | 40 | a *main* branch within it like this:: |
720 | 41 | 41 | ||
722 | 42 | brz init-repo my.repo | 42 | brz init-shared-repo my.repo |
723 | 43 | cd my.repo | 43 | cd my.repo |
724 | 44 | brz init my.main | 44 | brz init my.main |
725 | 45 | cd my.main | 45 | cd my.main |
726 | @@ -50,6 +50,6 @@ | |||
727 | 50 | Some users prefer a name like *trunk* or *dev* to *main*. Choose | 50 | Some users prefer a name like *trunk* or *dev* to *main*. Choose |
728 | 51 | whichever name makes the most sense to you. | 51 | whichever name makes the most sense to you. |
729 | 52 | 52 | ||
731 | 53 | Note that the ``init-repo`` and ``init`` commands both take a path as an | 53 | Note that the ``init-shared-repo`` and ``init`` commands both take a path as an |
732 | 54 | argument and will create that path if it doesn't already exist. | 54 | argument and will create that path if it doesn't already exist. |
733 | 55 | 55 | ||
734 | 56 | 56 | ||
735 | === modified file 'doc/en/user-guide/svn_plugin.txt' | |||
736 | --- doc/en/user-guide/svn_plugin.txt 2017-05-21 13:41:54 +0000 | |||
737 | +++ doc/en/user-guide/svn_plugin.txt 2019-10-13 18:08:15 +0000 | |||
738 | @@ -30,7 +30,7 @@ | |||
739 | 30 | GNOME project like **beagle**. Firstly, setup a local shared repository | 30 | GNOME project like **beagle**. Firstly, setup a local shared repository |
740 | 31 | for storing your branches in and checkout the trunk:: | 31 | for storing your branches in and checkout the trunk:: |
741 | 32 | 32 | ||
743 | 33 | brz init-repo beagle-repo | 33 | brz init-shared-repo beagle-repo |
744 | 34 | cd beagle-repo | 34 | cd beagle-repo |
745 | 35 | brz checkout svn+ssh://svn.gnome.org/svn/beagle/trunk beagle-trunk | 35 | brz checkout svn+ssh://svn.gnome.org/svn/beagle/trunk beagle-trunk |
746 | 36 | 36 | ||
747 | @@ -69,7 +69,7 @@ | |||
748 | 69 | 69 | ||
749 | 70 | Here's the recipe from above updated to use a central Breezy mirror:: | 70 | Here's the recipe from above updated to use a central Breezy mirror:: |
750 | 71 | 71 | ||
752 | 72 | brz init-repo beagle-repo | 72 | brz init-shared-repo beagle-repo |
753 | 73 | cd beagle-repo | 73 | cd beagle-repo |
754 | 74 | brz branch bzr+ssh://brz.gnome.org/beagle.brz/trunk beagle-trunk | 74 | brz branch bzr+ssh://brz.gnome.org/beagle.brz/trunk beagle-trunk |
755 | 75 | brz branch beagle-trunk beagle-feature1 | 75 | brz branch beagle-trunk beagle-feature1 |
756 | 76 | 76 | ||
757 | === modified file 'tools/win32/build_release.py' | |||
758 | --- tools/win32/build_release.py 2018-11-16 13:02:50 +0000 | |||
759 | +++ tools/win32/build_release.py 2019-10-13 18:08:15 +0000 | |||
760 | @@ -136,7 +136,8 @@ | |||
761 | 136 | if not os.path.isdir(plugin_name): | 136 | if not os.path.isdir(plugin_name): |
762 | 137 | if plugin_name in ('bzr-svn', 'bzr-rewrite'): | 137 | if plugin_name in ('bzr-svn', 'bzr-rewrite'): |
763 | 138 | # bzr-svn uses a different repo format | 138 | # bzr-svn uses a different repo format |
765 | 139 | call_or_fail([brz(), 'init-repo', '--rich-root-pack', plugin_name]) | 139 | call_or_fail( |
766 | 140 | [brz(), 'init-shared-repo', '--rich-root-pack', plugin_name]) | ||
767 | 140 | else: | 141 | else: |
768 | 141 | os.mkdir(plugin_name) | 142 | os.mkdir(plugin_name) |
769 | 142 | if os.path.isdir(release_dir): | 143 | if os.path.isdir(release_dir): |
Okay, makes sense to me.