setup.cfg
author Sushil khanchi <sushilkhanchi97@gmail.com>
Sun, 29 Dec 2019 23:59:41 +0530
changeset 5239 13152b2fe8f7
parent 2049 b81d3775006b
permissions -rw-r--r--
evolve: refactor content-divergence resolution logic > What is the case we are looking at? This is about refactoring the part of content-div resolution logic where it decides which cset should be relocated and where. > What is a "topologicial common ancestors" vs a "greatest common ancestors"? `tca` is an ancestor which we can decide/find by looking at the at graph visually for e.g ``` c3(*) c4(*) | | c2(x) c1(x) c5 | / \ | / c0 ``` (c5 is the successor of c2 and c1) now here, `tca` of c3 and c4 is: c0 `gca` of c3 and c4 is: c5 > What is the new top-level logic/behavior that makes it better? The old code had some unnecessary edge cases just because we were using `gca`, since it can point to a revision that is not a topological ancestor. For e.g see b779b40f996e Eventually, the code around this was getting messy unnecessarily. So I looked into it and found a simple and more robust approach. And in new code, it is simple and straightforward (and easy to understand), where we handle the following 4 cases when solving content-div: 1) when both are on the same parent => (no need to do anything special, and simply proceed) 2) both are on the different parent but a) `tca` is the parent of one of them or b) there is no non-obsolete revision between `tca` and one of the divergent cset. => (relocate one to the other side and proceed) 3) both are on different parents and `tca` is not the parent of any of them and there is at least one non-obsolete cset between tca and both the divergent cset i.e (tca::div1) and (tca::div2) both the ranges have at least one non-obs revision. => (this is the case which we don't handle yet, but the solution would be to prompt the user to choose an evolve destination.) 4) both are in the parent-child relation => (both are merged and new cset will be based on the successor of `tca`) Changes in test-evolve-issue5958.t demonstrate that new code also covered case4 because in a resolution of "two divergent csets with parent-child relation" there should be one cset as a result and no orphan revs (as you can see there was an orphan before this patch).
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2001
ddfc87788d5c flake8: add file for rules to ignore
Sean Farley <sean@farley.io>
parents:
diff changeset
     1
[flake8]
2029
a6410877339a flake8: document all the exception we added
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2020
diff changeset
     2
ignore =
a6410877339a flake8: document all the exception we added
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2020
diff changeset
     3
         #closing bracket does not match indentation of opening bracket's line
a6410877339a flake8: document all the exception we added
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2020
diff changeset
     4
         E123,
a6410877339a flake8: document all the exception we added
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2020
diff changeset
     5
         # closing bracket does not match visual indentation
a6410877339a flake8: document all the exception we added
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2020
diff changeset
     6
         E124,
a6410877339a flake8: document all the exception we added
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2020
diff changeset
     7
         # visually indented line with same indent as next logical line
a6410877339a flake8: document all the exception we added
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2020
diff changeset
     8
         E129,
a6410877339a flake8: document all the exception we added
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2020
diff changeset
     9
         # at least two spaces before inline comment
a6410877339a flake8: document all the exception we added
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2020
diff changeset
    10
         E261,
a6410877339a flake8: document all the exception we added
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2020
diff changeset
    11
         # too many leading '#' for block comment
a6410877339a flake8: document all the exception we added
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2020
diff changeset
    12
         E266,
a6410877339a flake8: document all the exception we added
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2020
diff changeset
    13
         # expected 2 blank lines, found 0
a6410877339a flake8: document all the exception we added
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2020
diff changeset
    14
         E302,
a6410877339a flake8: document all the exception we added
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2020
diff changeset
    15
         # expected 2 blank lines after end of function or class
a6410877339a flake8: document all the exception we added
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2020
diff changeset
    16
         E305,
2030
3e8fcf47fb1e flake8: ignore an addition rules related to import
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2029
diff changeset
    17
         # module level import not at top of file
3e8fcf47fb1e flake8: ignore an addition rules related to import
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2029
diff changeset
    18
         E402,
2029
a6410877339a flake8: document all the exception we added
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2020
diff changeset
    19
         # line too long (82 > 79 characters)
a6410877339a flake8: document all the exception we added
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2020
diff changeset
    20
         E501,
a6410877339a flake8: document all the exception we added
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2020
diff changeset
    21
         # do not assign a lambda expression, use a def
a6410877339a flake8: document all the exception we added
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2020
diff changeset
    22
         E731,
a6410877339a flake8: document all the exception we added
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2020
diff changeset
    23
         # class names should use CapWords convention
a6410877339a flake8: document all the exception we added
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2020
diff changeset
    24
         N801,
a6410877339a flake8: document all the exception we added
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2020
diff changeset
    25
         # line break occurred before a binary operator
a6410877339a flake8: document all the exception we added
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2020
diff changeset
    26
         W503
2049
b81d3775006b evolve: move extension metadata in their own module
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2031
diff changeset
    27
builtins=xrange, execfile
2020
143c8e4dc22d topic: merge the topic extension in the evolve repository
Pierre-Yves David <pierre-yves.david@ens-lyon.org>
parents: 2010
diff changeset
    28