- User Since
- Sep 30 2017, 6:32 AM (114 w, 6 d)
This should be documented in mercurial/helptext/config.txt I think.
Wed, Dec 11
Tue, Dec 10
Sun, Dec 8
Wed, Dec 4
Mon, Dec 2
There is apparently no test coverage for this.
Sun, Dec 1
All these API where one can pass either a list of "things" or just one "thing" is kind of ugly. We should only handle the list case, I think.
Sat, Nov 30
Sun, Nov 24
This is actually pycompat.open(), so it need bytes.
Looks like dead code
Sat, Nov 23
I only have a superficial understanding about how templates work, but I assume that there's no global pre-resolution step where a single query could be done and the results stuffed into the context or something, is there?
Fri, Nov 22
nit: the actual PEP is pep-0461 (https://www.python.org/dev/peps/pep-0461/)
The next commit is going to change the format of conduit API requests so none of the VCR recordings will match and all the tests will fail.
Thu, Nov 21
Shouldn't this be also done for all similar functions? (i.e. _xmergeimm and functions registered as a merge tool with @internaltool)
Wed, Nov 20
I don't see any test for hg shelve --delete NAME that's not a command error case; adding some in D7460.
Tue, Nov 19
Sorry, still not ok afaict :/
Sat, Nov 16
Fri, Nov 15
black complains because inline comments have only one space before (esp. the first one produces a parse error).
Out of curiosity, where does this __index__ value come from?
D7430 makes this changes unnecessary I think.
Rather class bytestr(bytes): # type: Callable[[Union[bytes, str], bytestr] as @yuya suggested in D7380.
Thu, Nov 14
class bytestr(bytes): # type: (Union[bytes,str]) -> bytestr [...]
Have you tried using variables annotations? Like:
strtolocal = pycompat.identity # type: (str) -> bytes strfromlocal = pycompat.identity # type: (bytes) -> str
I wonder if using importlib.import_module() wouldn't help. Or is it something we avoid in Mercurial?
On second thought, it's not obvious why it'd be better than annotating __init__(). Is this because this would require many changes in callers?