Patchwork [02,of,11,V5] merge: drop redundant column in docstring table

login
register
mail settings
Submitter via Mercurial-devel
Date Feb. 28, 2017, 12:31 a.m.
Message ID <63a4df2dc6339d6d5c55.1488241879@martinvonz.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/18820/
State Accepted
Headers show

Comments

via Mercurial-devel - Feb. 28, 2017, 12:31 a.m.
# HG changeset patch
# User Martin von Zweigbergk <martinvonz@google.com>
# Date 1488234797 28800
#      Mon Feb 27 14:33:17 2017 -0800
# Node ID 63a4df2dc6339d6d5c555eb8caaf9ad202b87f21
# Parent  c0134c2ac2ac52fdb39cd8ba953e1d52a153458f
merge: drop redundant column in docstring table

The "same" and "cross" columns now have the same values, so let's
combine them into "non-linear".

Patch

diff -r c0134c2ac2ac -r 63a4df2dc633 mercurial/merge.py
--- a/mercurial/merge.py	Mon Feb 27 14:27:22 2017 -0800
+++ b/mercurial/merge.py	Mon Feb 27 14:33:17 2017 -0800
@@ -1464,20 +1464,19 @@ 
     The table below shows all the behaviors of the update command
     given the -c and -C or no options, whether the working directory
     is dirty, whether a revision is specified, and the relationship of
-    the parent rev to the target rev (linear, on the same named
-    branch, or on another named branch).
+    the parent rev to the target rev (linear or not).
 
     This logic is tested by test-update-branches.t.
 
-    -c  -C  dirty  rev  |  linear      same    cross
-     n   n    n     n   |    ok         x        x
-     n   n    n     y   |    ok        ok       ok
-     n   n    y     n   |   merge       x        x
-     n   n    y     y   |   merge      (1)      (1)
-     n   y    *     *   |   discard   discard   discard
-     y   n    y     *   |    (2)       (2)      (2)
-     y   n    n     *   |    ok        ok       ok
-     y   y    *     *   |    (3)       (3)      (3)
+    -c  -C  dirty  rev  |  linear   non-linear
+     n   n    n     n   |    ok         x
+     n   n    n     y   |    ok        ok
+     n   n    y     n   |   merge       x
+     n   n    y     y   |   merge      (1)
+     n   y    *     *   |   discard   discard
+     y   n    y     *   |    (2)       (2)
+     y   n    n     *   |    ok        ok
+     y   y    *     *   |    (3)       (3)
 
     x = can't happen
     * = don't-care