Difficulties with permanence of obsolete markers

Lars Westerhoff lars.westerhoff at newtec.eu
Wed Jun 29 08:25:49 UTC 2016


Hi,

Am 28.06.2016 um 09:59 schrieb Scott Bilas:
> We're using evolve on my team, and are having difficulty with obsolete
> being a permanent one-way operation. (Unless I'm missing an evolve
> feature that lets us undo this, though I scanned the help and could not
> find anything..)
> [...]
>
> I assume what we're running into is an explicit design decision to avoid
> instability. The end result is that it's making our people very
> tentative about doing hist editing and fully trusting evolve.
> [...]

I also assume that it is by design as it completely defies the purpose
of obsolete markers if they are deleted if the affected changesets may
have been shared.

That said, if you can ensure that the obsolete marker of the badly
marked commit has not been shared, you can use "hg debugobsolete" to
delete single obsolete markers:

hg debugobsolete --index
hg debugobsolete --delete $INDEX

The first outputs the list of obsolete markers with their indices, the
second deletes the obsolete marker with the given index.

Don't pass a hash to "hg debugobsolete --index" as I first did: It won't
show the index of the passed hash, but instead creates a new obsolete
marker for it. Well, was a good chance to assure myself that above tip
indeed worked ;)

Best regards,
Lars

--
Lars Westerhoff
Senior Software Engineer
E-mail: lars.westerhoff at newtec.eu

Newtec Communications GmbH - a Newtec Company
Berliner Straße 26, D-13507 Berlin, Germany
Tel: +49 30 43095-540 (switchboard) / Fax: +49 30 43095-579
Trade Register Berlin Charlottenburg, HR B 90496, VAT-ID DE 813935865
Managing Directors: Sonja de Pinnewaert, Michael Smeyers

Newtec - *Shaping the Future of Satellite Communications*
http://www.newtec.eu/
Secure your future - Meet Newtec Dialog®<http://www.newtec.eu/product/newtec-dialog> - the platform that embraces change. With Mx-DMA™<http://www.newtec.eu/technology/mx-dma> - Discover the WTA ‘Teleport Technology of the Year’ award winner 2015!
***mail confidentiality footer ***
This message and any attachments thereto are confidential. They may also be privileged or otherwise protected by work product immunity or other legal rules. If you have received it by mistake, please let us know by e-mail reply and delete it from your system; you may not copy this message or disclose its contents to anyone. E-mail transmission cannot be guaranteed to be secure or error free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore is in no way liable for any errors or omissions in the content of this message, which may arise as a result of e-mail transmission. If verification is required, please request a hard copy.



More information about the Evolve-testers mailing list