changeset 31160:487ec7b096e2

merge: make "linear" an input in docstring table Instead of having two ouputs, it seem simpler to have an addition input. This will allow further simplification.
author Martin von Zweigbergk <martinvonz@google.com>
date Mon, 27 Feb 2017 14:58:53 -0800
parents 955b3a6d3dd5
children 351207bfdde9
files mercurial/merge.py
diffstat 1 files changed, 12 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/merge.py	Mon Feb 27 14:33:17 2017 -0800
+++ b/mercurial/merge.py	Mon Feb 27 14:58:53 2017 -0800
@@ -1468,15 +1468,18 @@
 
     This logic is tested by test-update-branches.t.
 
-    -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)
+    -c  -C  dirty  rev  linear  |  result
+     n   n    n     n     n     |     x
+     n   n    n     n     y     |    ok
+     n   n    n     y     *     |    ok
+     n   n    y     n     n     |     x
+     n   n    y     n     y     |   merge
+     n   n    y     y     n     |    (1)
+     n   n    y     y     y     |   merge
+     n   y    *     *     *     |  discard
+     y   n    y     *     *     |    (2)
+     y   n    n     *     *     |    ok
+     y   y    *     *     *     |    (3)
 
     x = can't happen
     * = don't-care