Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TortoiseHg how to restore entire repository from a bundle

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.

like image 744
Stan Avatar asked Feb 24 '23 08:02

Stan


2 Answers

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.

like image 135
Rudi Avatar answered Mar 14 '23 23:03

Rudi


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

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

like image 41
Matt Habel Avatar answered Mar 14 '23 21:03

Matt Habel