Correctly interpret the "no merge location" message from bzr 0.7.
authorMarien Zwart <marienz@gentoo.org>
Wed, 5 Apr 2006 16:12:35 +0000 (18:12 +0200)
committerMarien Zwart <marienz@gentoo.org>
Wed, 5 Apr 2006 16:12:35 +0000 (18:12 +0200)
libbe/bzr.py

index 7aa6a58430033d37a3039cfdd5e3e522ee041469..b53429ce266d322ad118e596b612b714a4c27eee 100644 (file)
@@ -121,7 +121,8 @@ def postcommit(directory):
     try:
         invoke_client('merge', directory=directory)
     except CommandError, e:
-        if 'No merge branch known or specified' in e.err_str:
+        if ('No merge branch known or specified' in e.err_str or
+            'No merge location known or specified' in e.err_str):
             pass
         else:
             status = invoke_client('revert',  '--no-backup',