I want to checkout only history of a repository.
Does there any option to clone history as like as git --bare clone <repo_url> option?
I don't use Mercurial, but from the help I'd say the nearest you will get is
-U --noupdate the clone will include an empty working directory (only a repository)
Update as per answer of @Ry4anBrase:
For an existing repository hg update null deletes all local files. This checks out the null revision, which is the revision before revision 0, and contains no files. If you check out that revision you local files go away and you've got a bare clone as a result.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With