Commit Graph

8 Commits

Author SHA1 Message Date
Jun Wu
a487dacc4b codemod: reformat rest of the code
Summary:
Previous code format attempt (D8173629) didn't cover all files due to `**/*.py`
was not expanded recursively by bash. That makes certain changes larger than
they should be (ex. D8675439). Now use zsh's `**/*.py` to format them.

Also fix Python syntax so black can run on more files, and all lint issues.

Reviewed By: phillco

Differential Revision: D8696912

fbshipit-source-id: 95f07aa0c5eb1b63947b0f77f534957f4ab65364
2018-07-05 17:52:43 -07:00
Lukasz Langa
dfda82e492 Upgrade to 18.5b1
Summary: Mostly empty lines removed and added.  A few bugfixes on excessive line splitting.

Reviewed By: quark-zju

Differential Revision: D8199128

fbshipit-source-id: 90c1616061bfd7cfbba0b75f03f89683340374d5
2018-05-30 02:23:58 -07:00
Mateusz Kwapich
be9c5d754b fix pyflakes.t failure
Summary: Our CI didn't catch when I landed the previous diff.

Reviewed By: singhsrb

Differential Revision: D7834066

fbshipit-source-id: a51c2a294ea550917836f8b1eede2570838b60b7
2018-05-01 13:44:40 -07:00
Mateusz Kwapich
626759e564 add short_list support to argparse
Summary:
We mark some hg commands as appearing in short help, let's add this
to our parser

Reviewed By: quark-zju

Differential Revision: D7779270

fbshipit-source-id: 0c2b790f1994205ae4dbf7cd12ac3ba7f5ef39ad
2018-05-01 04:26:26 -07:00
Mateusz Kwapich
cc3ed51d7f importer of command defninitions from python hg to rust
Summary:
Let's check-in the definitions for now. In the future those should be generated
every build with all the extensions enabled - like in prod.

Reviewed By: quark-zju

Differential Revision: D7779273

fbshipit-source-id: f0d5c5260be74c5f64c0945004bf60399a6e8c4c
2018-05-01 04:26:26 -07:00
Mateusz Kwapich
052d0e3708 Command trait in rust
Summary:
We (me and Aida)  wanted to have something that could be used instead of Command decorator that we have in python
and we came up with the following trait.

Differential Revision: D7754930

fbshipit-source-id: 15f412d07045e7d8b229801ec3094664f78f801b
2018-04-25 16:00:36 -07:00
Mateusz Kwapich
86d3de94e5 demo binary
Summary: Let's commit a stub of demo binary depending on argparse that we'll work on this wekk

Differential Revision: D7752614

fbshipit-source-id: a811ea363d49e0fd56cc755b0abb74d89b4a3112
2018-04-25 16:00:36 -07:00
Mateusz Kwapich
21069062f4 argparse crate (derived from fbcode/scm/telemetry/telemetry/src)
Summary:
let's turn the wez's argparse library from telemetry into a separate
crate withing hg/lib. We'll experiment on it and if things go well we'll make
`telemetry` depend on that.

Reviewed By: quark-zju

Differential Revision: D7752615

fbshipit-source-id: 0814d91d704abdb746894a0289bf082e8d799b73
2018-04-25 16:00:36 -07:00