tikitu / hg-clone-cache

Patch mercurial "hg clone" to first check a local cache before hitting network
0 stars 0 forks source link

Does not play nicely with `hg clone -u` #1

Open tikitu opened 9 years ago

tikitu commented 9 years ago

If the revision requested with -u is not in the cache the initial clone fails with an error: abort: unknown revision.

Fix is to remove the -u from the initial clone, and replay it after the clone has been refreshed from remote.

tikitu commented 9 years ago

A better fix: update the cache (before the clone), then we can reply the clone command as-is and we don't have to update the new clone at all.