sapling/eden/scm
Yan Soares Couto f64520a312 On lookup call, return file size metadata
Summary:
This diff addresses [this comment](https://www.internalfb.com/diff/D29849964 (4bde7b7488)?dst_version_fbid=244353817531864&transaction_fbid=342353780770798).

- It removes the bit of code in `process_files_upload` that adds file size to the metadata.
- In order for this not to break the bonsai upload, I made it so the lookup call returns upload tokens with file size when looking up a file.
- Took the opportunity to do some refactoring
  - Consolidated duplicated functions in `convert_file_to_content_id`, and added some helpful From implementations to make calling it more ergonomic.
  - `convert_file_to_content_id` now doesn't fail when the file doesn't exist, instead returns option (also fixed the callsite)

Reviewed By: liubov-dmitrieva

Differential Revision: D30016963

fbshipit-source-id: aae8a085d7a207e50679bb1210277a9e21a32de8
2021-08-05 09:29:45 -07:00
..
contrib replace readlink_retry_estale with os.readlink in cli 2021-08-02 15:00:17 -07:00
distutils_rust Use provided env var for CARGO_TARGET_DIR if present 2021-07-22 06:10:56 -07:00
doc py3: fix test-help.t 2020-04-09 18:25:54 -07:00
edenscm snapshot: Populate author, date, parents and file type correctly 2021-08-05 09:29:44 -07:00
edenscmnative snapshot: Populate author, date, parents and file type correctly 2021-08-05 09:29:44 -07:00
exec fsprobe: move main.rs outof bin 2021-08-02 10:30:44 -07:00
hgcache_size_logger add hgcache size logger 2020-08-26 04:24:50 -07:00
i18n update draft help page 2021-08-02 15:54:03 -07:00
lib On lookup call, return file size metadata 2021-08-05 09:29:45 -07:00
newdoc notes: add 2019-10 Manifests, Past and Future 2021-03-04 08:52:27 -08:00
pystubs Switch eden to new Pyre backend 2021-07-27 22:39:51 -07:00
slides apply black 20.8b1 formatting update 2020-10-14 20:21:52 -07:00
tests automv: add max-files threshold 2021-08-02 18:20:27 -07:00
.editorconfig Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
.flake8 debugrebuildchangelog: support rebuild with lazy segmented changelog 2021-05-26 19:00:01 -07:00
.gitignore gitignore: track Makefile under scm 2021-03-04 08:52:27 -08:00
COPYING Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
gen_version.py version: a Rust crate providing version information 2020-05-18 09:00:40 -07:00
hgeditor Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
Makefile py3: remove py3 options and py2 rpm spec 2021-06-15 14:46:42 -07:00
README.rst Move fb-mercurial sources into an eden/scm subdirectory. 2019-11-13 16:04:48 -08:00
setup.py Add base snapshot subcommand 2021-07-30 03:24:34 -07:00

Mercurial
=========

Mercurial is a fast, easy to use, distributed revision control tool
for software developers.

Basic install::

 $ make            # see install targets
 $ make install    # do a system-wide install
 $ hg debuginstall # sanity-check setup
 $ hg              # see help

Running without installing::

 $ make local      # build for inplace usage
 $ ./hg --version  # should show the latest version

See https://mercurial-scm.org/ for detailed installation
instructions, platform-specific notes, and Mercurial user information.