开发者

TortoiseHg how to restore entire repository from a bundle

开发者 https://www.devze.com 2023-03-01 18:33 出处:网络
My last action to rebase branches totally messed up. I saw the output开发者_开发问答 message says \"saved backup bundle to xxx.hg\". Is there any way to restore entire repository from that bundle? Tha

My last action to rebase branches totally messed up. I saw the output开发者_开发问答 message says "saved backup bundle to xxx.hg". Is there any way to restore entire repository from that bundle? Thanks.


You can pull this bundle into your repo with hg pull xxx.hg. Afterwards you can strip the unwanted revisions with the strip command from the mq extension.


You could use hg rollback to rollback the commit you just did.

http://www.selenic.com/mercurial/hg.1.html#rollback

0

精彩评论

暂无评论...
验证码 换一张
取 消