This is an archive of the discontinued Mercurial Phabricator instance.

rust: introduce Repo and Vfs types for filesystem abstraction
ClosedPublic

Authored by SimonSapin on Dec 14 2020, 11:27 AM.

Details

Summary

This is similar to the corresponding Python classes.

Repo represents a repository and knows the path to the .hg directory,
the store directory, and the working directory.
Separating these will enable supporting the share extension.

A Vfs is created from a Repo for one of these three directories.
It has filesystem access APIs that take a relative std::path::Path
as a parameter.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

SimonSapin created this revision.Dec 14 2020, 11:27 AM
pulkit accepted this revision.Dec 17 2020, 5:56 AM
This revision is now accepted and ready to land.Dec 17 2020, 5:56 AM
pulkit requested changes to this revision.Dec 18 2020, 3:51 AM

This needs to be rebased on current head of default branch.

This revision now requires changes to proceed.Dec 18 2020, 3:51 AM
SimonSapin updated this revision to Diff 24444.Dec 19 2020, 4:41 PM
pulkit accepted this revision.Dec 21 2020, 6:53 AM
This revision is now accepted and ready to land.Dec 21 2020, 6:53 AM