Commit Graph

10 Commits

Author SHA1 Message Date
generatedunixname89002005307016
6215eee700 Add annotations to eden/scm/edenscm/lock.py
Reviewed By: yancouto

Differential Revision: D41265077

fbshipit-source-id: 0d639b8bfc8b89c883f2a17f1948031ccf1f38ff
2022-11-15 03:34:50 -08:00
generatedunixname89002005307016
9b61abe54b Add annotations to eden/scm/edenscm/hg.py
Reviewed By: jordanwebster

Differential Revision: D40978785

fbshipit-source-id: c39a89bf84107df17f74c7d3ff2f177bcd866059
2022-11-03 06:43:01 -07:00
Yan Soares Couto
f144bcd480 Add annotations to eden/scm/edenscm/hg.py
Reviewed By: quark-zju

Differential Revision: D40633838

fbshipit-source-id: 668f4195cf8eb22c1e82d5e82578c4f923c7b1ac
2022-10-31 15:52:11 -07:00
Muir Manders
36cf300898 config: templatize "hg" usage in example configs
Summary: Change "hg" to prog@ and run the sample configs through _() when used.

Reviewed By: bolinfest

Differential Revision: D40496655

fbshipit-source-id: cd60425a6928725b4f4af37e74db6c849b701ddf
2022-10-21 15:17:26 -07:00
Muir Manders
d4ccc1196d git clone: set up repo config earlier
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
2022-10-21 14:45:29 -07:00
Muir Manders
5b1bb04628 clone: clean up repo if user ctrl-C's
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
2022-10-14 08:56:57 -07:00
Saul Gutierrez
41b41de101 replace hardcoded hg and Mercurial with @prog@ and @Product@ outside of helptext.py
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
2022-10-10 16:39:36 -07:00
Saul Gutierrez
73c79602f3 config: remove hardcoded uses of .hgrc
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
2022-10-05 18:15:48 -07:00
Muir Manders
0722c116dd replace various ".hg" instances w/ identity.dotdir()
Reviewed By: jordanwebster

Differential Revision: D39867740

fbshipit-source-id: 6f1451db87e092e5aa9b2183336d0c4d60771b6a
2022-10-05 12:20:12 -07:00
Muir Manders
44343769f8 collapse edenscm.mercurial package into edenscm
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
2022-08-24 13:45:53 -07:00