This is an archive of the discontinued Mercurial Phabricator instance.

prefetch: merge prefetchtrees command into prefetch
AbandonedPublic

Authored by singhsrb on Nov 7 2017, 7:37 PM.
Tags
None
Subscribers
None

Details

Reviewers
None
Group Reviewers
Restricted Project
Summary

Currently,

  • hg prefetch prefetches files.
  • hg prefetchtrees prefetches trees.

This commit removes prefetchtrees and makes prefetch responsible for also
fetching the trees in case we are dealing with trees.

Test Plan

Ran all the tests.

Diff Detail

Repository
rFBHGX Facebook Mercurial Extensions
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

singhsrb created this revision.Nov 7 2017, 7:37 PM
Herald added a reviewer: Restricted Project. · View Herald TranscriptNov 7 2017, 7:37 PM
singhsrb retitled this revision from prefetch: merge prefetchtress command into prefetch to prefetch: merge prefetchtrees command into prefetch.Nov 7 2017, 7:38 PM
singhsrb added inline comments.Nov 7 2017, 7:41 PM
tests/test-treemanifest-prefetch.t
129

I effectively removed the --base option. Let me know if that was important and I can revive it. If we do want it, does it make sense to have one for hg prefetch itself?

treemanifest/__init__.py
161

Not sure if this is the best way or place to do this. Suggestions welcome!

singhsrb planned changes to this revision.Nov 9 2017, 1:08 PM

After the discussion in D1333, this would be done differently.

singhsrb abandoned this revision.Nov 14 2017, 3:46 PM

See D1417 instead.