=== modified file 'lava_test/core/installers.py'
@@ -171,13 +171,9 @@
@staticmethod
def _bzr_source(testdir, dirname):
with changed_directory('%s/%s' % (testdir, dirname)):
- revno = subprocess.check_output(
- ['bzr', 'log', '-r', '-1', '--log-format=line']).split(':')[0]
- info = subprocess.check_output(['bzr', 'info'])
- for line in info.split('\n'):
- line = line.strip()
- if line.startswith('parent branch:'):
- url = line.split(':', 1)[-1]
+ revno = subprocess.check_output(['bzr', 'revno']).strip()
+ url = subprocess.check_output(
+ ['bzr', 'config', 'parent_location']).strip()
return {
'project_name': dirname,
'branch_vcs': 'bzr',