-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
hg: Add a cache for mercurial repositories. #372
Commits on May 13, 2024
-
hg: refactor for later evolutions
Signed-off-by: Christophe de Vienne <christophe.devienne@orus.io>
Configuration menu - View commit details
-
Copy full SHA for 8249aec - Browse repository at this point
Copy the full SHA 8249aecView commit details -
hg: Add a cache for mercurial repositories.
The idea is to save the whole untouched clone (with no checkout) in the cache. If already present, the pull is done directly in the cache, and is faster (except on very small repos) because only new changeset are transfered. If the ref is a changeset id (not a tag, branch, topic or bookmark), and the changeset is already known in the cached clone, no pull is done which avoid any network exchange. Then we copy the cached entry and do the checkout. Signed-off-by: Christophe de Vienne <christophe.devienne@orus.io>
Configuration menu - View commit details
-
Copy full SHA for a606d2c - Browse repository at this point
Copy the full SHA a606d2cView commit details -
hg: code cleaning: drop unused function
Signed-off-by: Christophe de Vienne <christophe.devienne@orus.io>
Configuration menu - View commit details
-
Copy full SHA for d2b9218 - Browse repository at this point
Copy the full SHA d2b9218View commit details -
The repo URL must be in the cache id. The ref is purposely not included in it because we want to reuse the cached repository when the ref moves. And finally, we use a sha256 hash to mask any authentication data because we don't want them to be readable in the cache folder name. Signed-off-by: Christophe de Vienne <christophe.devienne@orus.io>
Configuration menu - View commit details
-
Copy full SHA for 299570d - Browse repository at this point
Copy the full SHA 299570dView commit details -
Signed-off-by: Christophe de Vienne <christophe.devienne@orus.io>
Configuration menu - View commit details
-
Copy full SHA for 235398e - Browse repository at this point
Copy the full SHA 235398eView commit details -
Signed-off-by: Christophe de Vienne <christophe.devienne@orus.io>
Configuration menu - View commit details
-
Copy full SHA for f42e9ea - Browse repository at this point
Copy the full SHA f42e9eaView commit details -
hg_test: use require.NoError, code cleanup
Signed-off-by: Christophe de Vienne <christophe.devienne@orus.io>
Configuration menu - View commit details
-
Copy full SHA for 868e6d0 - Browse repository at this point
Copy the full SHA 868e6d0View commit details -
Use only the repository URL as a cacheID Signed-off-by: Christophe de Vienne <christophe.devienne@orus.io>
Configuration menu - View commit details
-
Copy full SHA for de55c1b - Browse repository at this point
Copy the full SHA de55c1bView commit details -
hg: fix a possible unbounded growth of the cache
Signed-off-by: Christophe de Vienne <christophe.devienne@orus.io>
Configuration menu - View commit details
-
Copy full SHA for 195a66f - Browse repository at this point
Copy the full SHA 195a66fView commit details
Commits on May 21, 2024
-
hg: unexport completely the Hg api
The 'hg' type is strictly an internal tool of the 'hg' fetcher. The only meaningful public API of this package is the 'Sync' type. Signed-off-by: Christophe de Vienne <christophe.devienne@orus.io>
Configuration menu - View commit details
-
Copy full SHA for 255e804 - Browse repository at this point
Copy the full SHA 255e804View commit details
Commits on May 27, 2024
-
Signed-off-by: Christophe de Vienne <christophe.devienne@orus.io>
Configuration menu - View commit details
-
Copy full SHA for ffd1bd9 - Browse repository at this point
Copy the full SHA ffd1bd9View commit details
Commits on Jun 7, 2024
-
Signed-off-by: Christophe de Vienne <christophe.devienne@orus.io>
Configuration menu - View commit details
-
Copy full SHA for cc864a7 - Browse repository at this point
Copy the full SHA cc864a7View commit details