How can you clone a Mercurial repository as of a specific changeset?

给你一囗甜甜゛ 提交于 2019-12-04 14:59:18

问题


How can you clone a Mercurial repository as of a specific changeset?

Ie: If the master repo has changesets 1-10, how can get a copy of the source as it existed in changeset #7?


回答1:


This command tells to use -r / --rev switch:

hg help clone

So :

hg clone -r 7


来源:https://stackoverflow.com/questions/4148234/how-can-you-clone-a-mercurial-repository-as-of-a-specific-changeset

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!