Rev 5467: Indent inplace files. in file:///home/vila/src/bzr/experimental/config/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Fri Oct 15 08:41:12 BST 2010
At file:///home/vila/src/bzr/experimental/config/
------------------------------------------------------------
revno: 5467
revision-id: v.ladeuil+lp at free.fr-20101015074112-rtvb5trlvmjyu6ln
parent: v.ladeuil+lp at free.fr-20101015073521-1gd4g49pbch0kbmj
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: config-modify
timestamp: Fri 2010-10-15 09:41:12 +0200
message:
Indent inplace files.
-------------- next part --------------
=== modified file 'bzrlib/tests/blackbox/test_config.py'
--- a/bzrlib/tests/blackbox/test_config.py 2010-10-13 14:17:10 +0000
+++ b/bzrlib/tests/blackbox/test_config.py 2010-10-15 07:41:12 +0000
@@ -54,30 +54,30 @@
def test_bazaar_config(self):
self.bazaar_config.set_user_option('hello', 'world')
script.run_script(self, '''\
-$ bzr config -d tree
-bazaar:
- hello = world
-''')
+ $ bzr config -d tree
+ bazaar:
+ hello = world
+ ''')
def test_locations_config_for_branch(self):
self.locations_config.set_user_option('hello', 'world')
self.branch_config.set_user_option('hello', 'you')
script.run_script(self, '''\
-$ bzr config -d tree
-locations:
- hello = world
-branch:
- hello = you
-''')
+ $ bzr config -d tree
+ locations:
+ hello = world
+ branch:
+ hello = you
+ ''')
def test_locations_config_outside_branch(self):
self.bazaar_config.set_user_option('hello', 'world')
self.locations_config.set_user_option('hello', 'world')
script.run_script(self, '''\
-$ bzr config
-bazaar:
- hello = world
-''')
+ $ bzr config
+ bazaar:
+ hello = world
+ ''')
class TestConfigSetOption(tests.TestCaseWithTransport):
@@ -92,43 +92,43 @@
def test_bazaar_config_outside_branch(self):
script.run_script(self, '''\
-$ bzr config --scope bazaar hello=world
-$ bzr config -d tree hello
-bazaar:
- hello = world
-''')
+ $ bzr config --scope bazaar hello=world
+ $ bzr config -d tree hello
+ bazaar:
+ hello = world
+ ''')
def test_bazaar_config_inside_branch(self):
script.run_script(self, '''\
-$ bzr config -d tree --scope bazaar hello=world
-$ bzr config -d tree hello
-bazaar:
- hello = world
-''')
+ $ bzr config -d tree --scope bazaar hello=world
+ $ bzr config -d tree hello
+ bazaar:
+ hello = world
+ ''')
def test_locations_config_inside_branch(self):
script.run_script(self, '''\
-$ bzr config -d tree --scope locations hello=world
-$ bzr config -d tree hello
-locations:
- hello = world
-''')
+ $ bzr config -d tree --scope locations hello=world
+ $ bzr config -d tree hello
+ locations:
+ hello = world
+ ''')
def test_branch_config_default(self):
script.run_script(self, '''\
-$ bzr config -d tree hello=world
-$ bzr config -d tree hello
-branch:
- hello = world
-''')
+ $ bzr config -d tree hello=world
+ $ bzr config -d tree hello
+ branch:
+ hello = world
+ ''')
def test_branch_config_forcing_branch(self):
script.run_script(self, '''\
-$ bzr config -d tree --scope branch hello=world
-$ bzr config -d tree hello
-branch:
- hello = world
-''')
+ $ bzr config -d tree --scope branch hello=world
+ $ bzr config -d tree hello
+ branch:
+ hello = world
+ ''')
class TestConfigRemoveOption(tests.TestCaseWithTransport):
@@ -143,62 +143,62 @@
def test_bazaar_config_outside_branch(self):
script.run_script(self, '''\
-$ bzr config --scope bazaar --remove file
-$ bzr config -d tree file
-locations:
- file = locations
-branch:
- file = branch
-''')
+ $ bzr config --scope bazaar --remove file
+ $ bzr config -d tree file
+ locations:
+ file = locations
+ branch:
+ file = branch
+ ''')
def test_bazaar_config_inside_branch(self):
script.run_script(self, '''\
-$ bzr config -d tree --scope bazaar --remove file
-$ bzr config -d tree file
-locations:
- file = locations
-branch:
- file = branch
-''')
+ $ bzr config -d tree --scope bazaar --remove file
+ $ bzr config -d tree file
+ locations:
+ file = locations
+ branch:
+ file = branch
+ ''')
def test_locations_config_inside_branch(self):
script.run_script(self, '''\
-$ bzr config -d tree --scope locations --remove file
-$ bzr config -d tree file
-branch:
- file = branch
-bazaar:
- file = bazaar
-''')
+ $ bzr config -d tree --scope locations --remove file
+ $ bzr config -d tree file
+ branch:
+ file = branch
+ bazaar:
+ file = bazaar
+ ''')
def test_branch_config_default(self):
script.run_script(self, '''\
-$ bzr config -d tree --remove file
-$ bzr config -d tree file
-branch:
- file = branch
-bazaar:
- file = bazaar
-''')
+ $ bzr config -d tree --remove file
+ $ bzr config -d tree file
+ branch:
+ file = branch
+ bazaar:
+ file = bazaar
+ ''')
script.run_script(self, '''\
-$ bzr config -d tree --remove file
-$ bzr config -d tree file
-bazaar:
- file = bazaar
-''')
+ $ bzr config -d tree --remove file
+ $ bzr config -d tree file
+ bazaar:
+ file = bazaar
+ ''')
def test_branch_config_forcing_branch(self):
script.run_script(self, '''\
-$ bzr config -d tree --scope branch --remove file
-$ bzr config -d tree file
-locations:
- file = locations
-bazaar:
- file = bazaar
-''')
+ $ bzr config -d tree --scope branch --remove file
+ $ bzr config -d tree file
+ locations:
+ file = locations
+ bazaar:
+ file = bazaar
+ ''')
script.run_script(self, '''\
-$ bzr config -d tree --remove file
-$ bzr config -d tree file
-bazaar:
- file = bazaar
-''')
+ $ bzr config -d tree --remove file
+ $ bzr config -d tree file
+ bazaar:
+ file = bazaar
+ ''')
More information about the bazaar-commits
mailing list