mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 09:17:30 +03:00
b6eb201c3f
Summary: There was a bug that caused commits with file deletions to not be backed up. This diff fixes it by first checking if file exists in the commit and only then downloading context of the file. Note: In tests I had to ignore stdout of `hg pushbackup` because the output was different on macs and linux. On linux there was an additional line remote: abort: data/committostripfirst.i@091b63e5e4: no match found! Probably mac's remotefilelog closes stdout/stderr earlier, but I wasn't able to find a root cause. Test Plan: Run unit tests Reviewers: #mercurial, quark Reviewed By: quark Subscribers: quark, mjpieters Differential Revision: https://phabricator.intern.facebook.com/D4929244 Tasks: 15389402 Signature: t1:4929244:1492791804:77b2baa9eb54a53120a955e72e6c132be5db6b44 |
||
---|---|---|
.. | ||
__init__.py | ||
backupcommands.py | ||
bundleparts.py | ||
common.py | ||
fileindexapi.py | ||
indexapi.py | ||
README | ||
schema.sql | ||
sqlindexapi.py | ||
store.py |
## What is it? This extension adds ability to save certain pushes to a remote blob store as bundles and to serve commits from remote blob store. The revisions are stored on disk or in everstore. The metadata are stored in sql or on disk. ## Config options infinitepush.branchpattern: pattern to detect a scratchbranch, example 're:scratch/.+' infinitepush.indextype: disk or sql for the metadata infinitepush.reponame: only relevant for sql metadata backend, reponame to put in sql infinitepush.indexpath: only relevant for ondisk metadata backend, the path to store the index on disk. If not set will be under .hg in a folder named filebundlestore infinitepush.storepath: only relevant for ondisk metadata backend, the path to store the bundles. If not set, it will be .hg/filebundlestore