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
=== modified file 'commands.py'
--- commands.py 2010-02-06 14:17:12 +0000
+++ commands.py 2010-02-06 14:17:12 +0000
@@ -269,8 +269,8 @@
269 alises = ['colo-co']269 alises = ['colo-co']
270 takes_args = ['to_directory']270 takes_args = ['to_directory']
271 takes_options = [271 takes_options = [
272 option.Option('create',272 option.Option('create', short_name='b',
273 help="Also create a new colocated branch by this name"""),273 help="Also create a new colocated branch by this name"),
274 ]274 ]
275275
276 def run(self, to_directory, create=False):276 def run(self, to_directory, create=False):
277277
=== modified file 'tests/test_colo.py'
--- tests/test_colo.py 2010-02-06 14:17:12 +0000
+++ tests/test_colo.py 2010-02-06 14:17:12 +0000
@@ -425,6 +425,25 @@
425 trunk425 trunk
426""")426""")
427427
428 def test_checkout_create_dash_b(self):
429 self.run_script("""
430$ bzr colo-init branch
431$ cd branch
432$ bzr colo-checkout -b ../fix1
433$ bzr colo-branches
434 fix1
435* trunk
436$ bzr nick
437trunk
438$ cd ../fix1
439$ cat .bzr/README
440$ bzr nick
441fix1
442$ bzr colo-branches
443* fix1
444 trunk
445""")
446
428 def test_checkout_in_directory(self):447 def test_checkout_in_directory(self):
429 self.run_script("""448 self.run_script("""
430$ bzr colo-init449$ bzr colo-init

Subscribers

People subscribed via source and target branches