Reputation: 14989
Essentially I to get just the contents of the repository at the default
commit. Conceptually similar to --depth=1
with git I think.
Upvotes: 2
Views: 279
Reputation: 399
I don't know of a way to clone a repository and only get default, but I think 'hg archive' might be close to what you want?
Upvotes: 3
Reputation: 3555
You can specify up to which commit (from start to commit #5) You want to get the content. The thing is - that Mercurial stores all the commits - as DIFFs.
This means - that if You want to get the latest state of the file1.txt, so what mercurial essentially does - is takes the file, as it was added, and applies all the diffs (deltas) onto that.
Basically - You can NOT get half of the repository, because of that.
Upvotes: 1