Merge lp:~bialix/bzr-colo/dash-b into lp:bzr-colo

Proposed by Alexander Belchenko
Status: Merged
Merged at revision: not available
Proposed branch: lp:~bialix/bzr-colo/dash-b
Merge into: lp:bzr-colo
Prerequisite: lp:~bialix/bzr-colo/checkout
Diff against target: 44 lines (+21/-2)
2 files modified
commands.py (+2/-2)
tests/test_colo.py (+19/-0)
To merge this branch: bzr merge lp:~bialix/bzr-colo/dash-b
Reviewer Review Type Date Requested Status
Neil Martinsen-Burrell Pending
Review via email: mp+18761@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Alexander Belchenko (bialix) wrote :

This branch adds -b as short name for --create option of colo-checkout command. Based on my patch to rename colo-clone to colo-checkout.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'commands.py'
2--- commands.py 2010-02-06 14:17:12 +0000
3+++ commands.py 2010-02-06 14:17:12 +0000
4@@ -269,8 +269,8 @@
5 alises = ['colo-co']
6 takes_args = ['to_directory']
7 takes_options = [
8- option.Option('create',
9- help="Also create a new colocated branch by this name"""),
10+ option.Option('create', short_name='b',
11+ help="Also create a new colocated branch by this name"),
12 ]
13
14 def run(self, to_directory, create=False):
15
16=== modified file 'tests/test_colo.py'
17--- tests/test_colo.py 2010-02-06 14:17:12 +0000
18+++ tests/test_colo.py 2010-02-06 14:17:12 +0000
19@@ -425,6 +425,25 @@
20 trunk
21 """)
22
23+ def test_checkout_create_dash_b(self):
24+ self.run_script("""
25+$ bzr colo-init branch
26+$ cd branch
27+$ bzr colo-checkout -b ../fix1
28+$ bzr colo-branches
29+ fix1
30+* trunk
31+$ bzr nick
32+trunk
33+$ cd ../fix1
34+$ cat .bzr/README
35+$ bzr nick
36+fix1
37+$ bzr colo-branches
38+* fix1
39+ trunk
40+""")
41+
42 def test_checkout_in_directory(self):
43 self.run_script("""
44 $ bzr colo-init

Subscribers

People subscribed via source and target branches