How do you say 'revert' since 'revert' does not 'revert'?

Dennis Brakhane brakhane at googlemail.com
Sat Aug 11 18:43:58 UTC 2012


Am 11.08.2012 19:55, schrieb wurzel:
>
> Yes, this will create a branch in your revision graph, also known as a
> new head, but this doesn't qualify as "anything crazy."  They're very
> helpful.
If you absolutely cannot stand the idea of creating a new head, you
could also clone a new repository up to the revisoin you want to start
new from:

hg clone -r REVISION old_repo new_repo

Keep in mind that this will only fetch REVISION and all previous
commits, if you happen to have multiple heads, you would lose them
(strictly speaking, you could also pull them in later via pull -r ...)

(There's also "strip" provided by hg, but the clone method is safer for
newbies as you cannot lose data (until you delete the original repo, of
course))

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 552 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20120811/aa9633be/attachment.asc>


More information about the Mercurial mailing list