summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Hutchings <ben.hutchings@codethink.co.uk>2020-08-05 18:45:28 +0100
committerBen Hutchings <ben.hutchings@codethink.co.uk>2020-08-05 18:49:51 +0100
commita839d558c96f03833b026ee33a383e9ce2108006 (patch)
tree04fc9cce50de2faab745050f7589526c2c720fc9
parenta934314cbdc56e30c77f554cd21772e5fbd306c3 (diff)
downloadlorry-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.md8
-rwxr-xr-xlorry4
2 files changed, 9 insertions, 3 deletions
diff --git a/README.md b/README.md
index 2db9838..a5845f3 100644
--- a/README.md
+++ b/README.md
@@ -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
diff --git a/lorry b/lorry
index 955b46b..1989400 100755
--- a/lorry
+++ b/lorry
@@ -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