Stan
Stan

Reputation: 38265

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.

Upvotes: 4

Views: 2298

Answers (2)

Rudi
Rudi

Reputation: 19950

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.

Upvotes: 6

Matt Habel
Matt Habel

Reputation: 1543

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

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

Upvotes: 2

Related Questions