Commit Graph

4 Commits

Author SHA1 Message Date
Durham Goode
88f9e15086 phrevset: use Mercurial json instead of Python json
Summary:
Python json produces unicode strings in the parsed results. This breaks
when passed to parts of the code that now assert that byte strings are required
(like the wire protocol). Let's switch phabricator stuff to use Mercurial json,
which produces bytes in Python 2 and unicode in Python 3.

Reviewed By: ikostia

Differential Revision: D20123140

fbshipit-source-id: d1b11426736a0f43ff7e74acf709ab1fd70d5bfe
2020-02-27 09:30:43 -08:00
Adam Simpkins
353c3ae62a py3: drop the use of re.LOCALE for some regexes
Summary:
Drop the use of `re.LOCALE`.  In Python 3.6+ this flag can only be used with
bytes patterns.  None of these regexes actually use the \w, \W, \b, or \B
patterns that would be affected by this setting.

Reviewed By: xavierd

Differential Revision: D19596747

fbshipit-source-id: e26ed5ac6d0378e1830c67ae7c018ccb56b7609a
2020-01-28 14:32:30 -08:00
Mateusz Kwapich
735a2fd691 use the lastest successor in phrevset
Summary:
When user types Dxxx as a revset locally they usually mean the latest version
of the commit - not neccesarily the one in phabricator. This usecase was
usually handled by doing local lookup which can be very slow in case of slow
commits: see for example those user complaints:
https://fb.workplace.com/groups/scm/permalink/2487795837936688

Reviewed By: farnz

Differential Revision: D18809252

fbshipit-source-id: b3442d6fa2ef9c9c0dff4909c874689810fbfa88
2019-12-04 10:38:59 -08:00
Adam Simpkins
ab3a7cb21f Move fb-mercurial sources into an eden/scm subdirectory.
Summary:
In preparation for merging fb-mercurial sources to the Eden repository,
move everything from the top-level directory into an `eden/scm`
subdirectory.
2019-11-13 16:04:48 -08:00