chiark / gitweb /
dgit: Reject split view with correct message
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 15 Jun 2019 10:49:33 +0000 (11:49 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 28 Jun 2019 15:59:49 +0000 (16:59 +0100)
Now, it is not just a splitting quilt mode which might cause this, but
also an explicit request for split view.

This has some duplicated text, which I understand is easier for
translators.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
dgit

diff --git a/dgit b/dgit
index 51bd648252ac65713b8bafe816a90e017730eab6..26a8bf0cc9d835c80d221e57d4a538056dc81ef5 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -4854,7 +4854,7 @@ sub cmd_pull {
     if (do_split_brain()) {
        my ($format, $fopts) = get_source_format();
        madformat($format) and fail f_ <<END, $quilt_mode
-dgit pull not yet supported in split view mode (--quilt=%s)
+dgit pull not yet supported in split view mode (including with view-splitting quilt modes)
 END
     }
     pull();
@@ -6388,7 +6388,8 @@ sub build_or_push_prep_early () {
 sub build_or_push_prep_modes () {
     determine_whether_split_brain();
 
-    fail __ "dgit: --include-dirty is not supported in split view quilt mode"
+    fail __ "dgit: --include-dirty is not supported with split view".
+            " (including with view-splitting quilt modes)"
        if do_split_brain() && $includedirty;
 }