diff options
author | Ben Hutchings <ben.hutchings@codethink.co.uk> | 2020-08-05 18:45:28 +0100 |
---|---|---|
committer | Ben Hutchings <ben.hutchings@codethink.co.uk> | 2020-08-05 18:49:51 +0100 |
commit | a839d558c96f03833b026ee33a383e9ce2108006 (patch) | |
tree | 04fc9cce50de2faab745050f7589526c2c720fc9 | |
parent | a934314cbdc56e30c77f554cd21772e5fbd306c3 (diff) | |
download | lorry-a839d558c96f03833b026ee33a383e9ce2108006.tar.gz |
Add warnings about using Breezy
We should not recommend using Breezy until we can point to a version
where fast-export is reliable.
* README: describe support for Breezy as experiemntal
* lorry: warn if attempting a Bazaar conversion using 'brz'
Relates to lorry-buildstream#14.
-rw-r--r-- | README.md | 8 | ||||
-rwxr-xr-x | lorry | 4 |
2 files changed, 9 insertions, 3 deletions
@@ -42,9 +42,11 @@ Required: Optional: -* **bzr-fastimport** or **Breezy**: Needed if you want to import - Bazaar (bzr) repositories. Can be installed as the `bzr-fastimport` - or `brz` package in Debian. +* **bzr-fastimport**: Needed if you want to import Bazaar (bzr) + repositories. Can be installed as the `bzr-fastimport` package in + Debian. It is also possible to use Breezy instead, but this should + currently be considered experimental due to bugs in its + implementation of `fast-export`. * **cmdtest**: Needed if you want to run the test suite. Can be installed as the `cmdtest` package in Debian, or from the source at @@ -466,6 +466,10 @@ class Lorry(cliapp.Application): def gitify_bzr(self, project_name, dirname, gitdir, spec): bzr = self.settings['bazaar-command'] + if os.path.basename(bzr) == 'brz': + msg = 'Using Breezy for Bazaar conversion, which may not work correctly' + logging.warning(msg) + self.output.write('%s\n' % msg) bzrdir = os.path.join(dirname, 'bzr') # check if repo exists |