A Scalable, User-Friendly Source Control System.
Go to file
Jun Wu b02e32e02e remotenames: fix crash with hg-git + remotefilelog
Summary:
Fixes the below type error when pulling from a git repo using hg-git on my laptop:

    File "edenscm/hgext/remotenames.py", line 225, in expull
      pullremotenames(repo, remote, bookmarks)
    File "edenscm/hgext/remotenames.py", line 314, in pullremotenames
      path = activepath(repo.ui, remote)
    File "edenscm/hgext/remotenames.py", line 1464, in activepath
      rpath = _normalizeremote(remote.url)
    File "edenscm/hgext/remotenames.py", line 1439, in _normalizeremote
      u = util.url(remote)
    File "edenscm/hgext/hggit/__init__.py", line 164, in _url
      if not (path.startswith(pycompat.ossep) and ":" in path):
    AttributeError: 'function' object has no attribute 'startswith'

Basically, `peer.url()` is the API, `peer._url` is a private field that does
not always exist somehow.

Besides, further remove named branches that can crash hg-git with
NotImplementedError:

    File "edenscm/hgext/remotenames.py", line 225, in expull
      pullremotenames(repo, remote, bookmarks)
    File "edenscm/hgext/remotenames.py", line 322, in pullremotenames
      for branch, nodes in remote.branchmap().iteritems():
    File "edenscm/hgext/hggit/gitrepo.py", line 73, in branchmap
      raise NotImplementedError

Reviewed By: DurhamG

Differential Revision: D14144462

fbshipit-source-id: 2e886c639cf6689480f84626eaf0d5ec25512ea0
2019-03-11 15:23:23 -07:00
apiserver core context: pass username and ssh env vars inside core context 2019-03-11 10:43:50 -07:00
async-compression Revert D13575719: [tp2] Update zstd to 1.3.8 as 1.3.x 2019-01-23 18:18:55 -08:00
asyncmemo rust/stats: don't require users to import lazy_static 2018-12-02 14:34:39 -08:00
blobimport_lib/src mononoke: do not upload same bookmark twice in blobimport 2019-02-11 05:50:55 -08:00
blobrepo mononoke: fix computing of changed files 2019-03-08 06:28:49 -08:00
blobrepo_utils mononoke: rename crates to contain underscores instead of dashes 2019-03-06 07:18:28 -08:00
blobstore mononoke/glusterblob: use symlinks rather than relying on rename 2019-03-11 14:02:28 -07:00
blobstore_sync_queue mononoke: rename crates to contain underscores instead of dashes 2019-03-06 07:18:28 -08:00
bonsai_hg_mapping mononoke: rename crates to contain underscores instead of dashes 2019-03-06 07:18:28 -08:00
bonsai_utils mononoke: rename crates to contain underscores instead of dashes 2019-03-06 07:18:28 -08:00
bookmarks mononoke: add scuba logging for mononoke_hg_sync_job 2019-02-28 03:17:19 -08:00
bundle2_resolver mononoke: add copy/rename sources to list of conflict files in pushrebase 2019-03-11 05:18:31 -07:00
bytes-ext add cargo build support for local development 2018-02-22 04:30:32 -08:00
cache_warmup/src mononoke: rename crates to contain underscores instead of dashes 2019-03-06 07:18:28 -08:00
changesets mononoke: rename crates to contain underscores instead of dashes 2019-03-06 07:18:28 -08:00
cmdlib/src core context: pass username and ssh env vars inside core context 2019-03-11 10:43:50 -07:00
cmds mononoke args: use cmdlib::args to unify defining and parsing of --myrouter-port flag 2019-02-15 13:16:27 -08:00
common unify lz4 compression with hg 2019-02-21 06:27:53 -08:00
failure_ext failure_ext: add SlogKVErrorKey enum to better handle SlogKVError handling 2019-02-20 08:52:09 -08:00
filenodes mononoke: rename crates to contain underscores instead of dashes 2019-03-06 07:18:28 -08:00
futures-ext Ignore flaky test asynchronize_parallel from futures-ext 2019-02-12 15:27:22 -08:00
hgcli hooks/verify_integrity: pass username and ssh env variables from CoreContext to verify_integrity.py 2019-03-11 10:43:50 -07:00
hgproto mononoke: getpackv1 params parsing 2019-03-11 07:17:07 -07:00
hook_tailer mononoke args: use cmdlib::args to unify defining and parsing of --myrouter-port flag 2019-02-15 13:16:27 -08:00
hooks hooks/check_unittests: add proper intergration tests with mocking 2019-03-11 07:11:41 -07:00
mercurial mononoke: rename crates to contain underscores instead of dashes 2019-03-06 07:18:28 -08:00
mercurial_bundles mononoke: rename crates to contain underscores instead of dashes 2019-03-06 07:18:28 -08:00
mercurial_types mononoke: fix computing of changed files 2019-03-08 06:28:49 -08:00
metaconfig hooks: enable configuring hooks for all bookmarks matching a given regex 2019-02-13 09:07:18 -08:00
mononoke_api/src mononoke: rename crates to contain underscores instead of dashes 2019-03-06 07:18:28 -08:00
mononoke_types mononoke: rename crates to contain underscores instead of dashes 2019-03-06 07:18:28 -08:00
netstring rust/netstring: convert to Rust 2018 2019-02-12 08:43:24 -08:00
phases mononoke: save bundles for replay 2019-02-11 05:50:55 -08:00
py_tar_utils move tar_utils.py from update_rust into an open sourceable location 2017-09-14 13:52:23 -07:00
reachabilityindex mononoke: fix computing of changed files 2019-03-08 06:28:49 -08:00
ready_state/src server: split server binary crate into 4 separate crates 2018-07-17 04:54:58 -07:00
repo_client clienttelemetry: introduce support 2019-02-28 10:34:47 -08:00
revset mononoke: fix computing of changed files 2019-03-08 06:28:49 -08:00
server hooks/verify_integrity: pass username and ssh env variables from CoreContext to verify_integrity.py 2019-03-11 10:43:50 -07:00
sshrelay hooks/verify_integrity: pass username and ssh env variables from CoreContext to verify_integrity.py 2019-03-11 10:43:50 -07:00
tests remotenames: fix crash with hg-git + remotefilelog 2019-03-11 15:23:23 -07:00
.gitignore add .gitignore 2018-03-13 11:58:20 -07:00
.travis.yml Add travis-CI integration by adding .travis.yml file. 2018-07-26 10:09:32 -07:00
Cargo.toml mononoke: rename crates to contain underscores instead of dashes 2019-03-06 07:18:28 -08:00
CONTRIBUTING.md Initial commit 2017-07-27 18:00:19 -07:00
LICENSE Initial commit 2017-07-27 18:00:19 -07:00
packman.yml packman config file for admin tool 2018-06-04 22:09:49 -07:00
README.md mention in README that Mononoke supports Mercurial 2017-07-28 14:41:37 -07:00
rustfmt.toml Back out D13589633 "revert D13584553, D13175922, D13166085 to fix rust builds" 2019-01-09 13:31:19 -08:00

Mononoke

Mononoke is a next-generation server for the Mercurial source control system, meant to scale up to accepting thousands of commits every hour across millions of files. It is primarily written in the Rust programming language.

Caveat Emptor

Mononoke is still in early stages of development. We are making it available now because we plan to start making references to it from our other open source projects such as Eden.

The version that we provide on GitHub does not build yet.

This is because the code is exported verbatim from an internal repository at Facebook, and not all of the scaffolding from our internal repository can be easily extracted. The key areas where we need to shore things up are:

  • Full support for a standard cargo build.
  • Open source replacements for Facebook-internal services (blob store, logging etc).

The current goal is to get Mononoke working on Linux. Other Unix-like OSes may be supported in the future.