Summary: Change "hg" to prog@ and run the sample configs through _() when used.
Reviewed By: bolinfest
Differential Revision: D40496655
fbshipit-source-id: cd60425a6928725b4f4af37e74db6c849b701ddf
Summary:
Now we set the repo config (in particular paths.default) as we initialize the repository. The ever important remotefilelog.reponame is inferred from paths.default, so everything is easier if paths.default is there from the get-go.
For example, updating the repo's config later left the repo._rsrepo object with a stale config with the wrong reponame.
Reviewed By: bolinfest
Differential Revision: D40474871
fbshipit-source-id: 6973b1c7c7041df96929647b11e803eb53a31ecd
Summary: Now we won't leave incomplete repo if the clone is interrupted by the user.
Reviewed By: quark-zju
Differential Revision: D40357936
fbshipit-source-id: 704875e60f09f8b13bc47e96dbbf14c58888647b
Summary:
Makes help text (e.g. the output of `hg help`) and strings that use the `_()` function use the identity of the current binary instead of using hardcoded strings for the name of the binary and the product.
For the sake of clarity, replacements for `helptext.py` are done in D40165740
Most of the rename was done using sed + some manual edits. The regex strings for the rename were:
- `"s/\(_(\".*\)\([^.]+\)hg\([^[:alpha:]\/]\)\(.*\")\)/\1\2@prog@\3\4/g"`
- `"s/\(_(\".*\) hg \(.*\")\)/\1 prog@ \2/g"`
- `"s/\(_(\".*\)\([^.]\)hg\([^\/[:alpha:]]\)\(.*\")\)/\1\2@prog@\3\4/g"`
- `"s/\(_(\".*\)\([^.]\)hg\([^\/[:alpha:]]\)\(.*\")\)/\1\2@prog@\3\4/g"`
- `"s/\(_(\".*\)\([^.]\)hg\([^\/[:alpha:]]\)\(.*\")\)/\1\2@prog@\3\4/g"`
Reviewed By: bolinfest
Differential Revision: D40162909
fbshipit-source-id: 34d92ef3e667caad278643690e69bd608fc9fdf9
Summary: Made sure that there were no remaining uses of it by grepping the `lib/` and `edenscm/` directories in the repo. Most of the documentation still references `.hgrc`, however.
Reviewed By: bolinfest
Differential Revision: D40081677
fbshipit-source-id: 728278cd5e3ae8070d8c0b9d441cc2fb2b3c138e
Summary:
We want to rename away from "mercurial". Rather than rename the "mercurial" Python package, we opted to just collapse it into the parent "edenscm" package. This is also a step towards further organizing we want to do around the new project name.
To ease the transition wrt hotfixes, we now replace "edenscm.mercurial" with "mercurial" to fix imports within base64-python extensions.
Reviewed By: sggutier
Differential Revision: D38943169
fbshipit-source-id: 03fa18079c51e2f7fac05d65b127095da3ab7c99