Patchwork [2,of,4] contrib: add a minimal extension enabling obsolescence

login
register
mail settings
Submitter Pierre-Yves David
Date Jan. 21, 2013, 6:48 p.m.
Message ID <dfb09c9eeea5a747c96c.1358794108@crater2.logilab.fr>
Download mbox | patch
Permalink /patch/696/
State Superseded
Headers show

Comments

Pierre-Yves David - Jan. 21, 2013, 6:48 p.m.
# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@logilab.fr>
# Date 1358793643 -3600
# Branch stable
# Node ID dfb09c9eeea5a747c96cae4b50ac070588234314
# Parent  f4d2c2dafbb336a89a036b669c03112dd6306331
contrib: add a minimal extension enabling obsolescence

Changeset evolution is still not ready for prime time but we made huge progress
toward it. This extension helps people to give it a try. In particular server
side were the evolve extension have nothing more to offer.
Nikolaj Sjujskij - Jan. 21, 2013, 7:03 p.m.
Den 2013-01-21 22:48:28 skrev <pierre-yves.david@logilab.fr>:

> # HG changeset patch
> # User Pierre-Yves David <pierre-yves.david@logilab.fr>
> # Date 1358793643 -3600
> # Branch stable
> # Node ID dfb09c9eeea5a747c96cae4b50ac070588234314
> # Parent  f4d2c2dafbb336a89a036b669c03112dd6306331
> contrib: add a minimal extension enabling obsolescence
>
> Changeset evolution is still not ready for prime time but we made huge  
> progress toward it. This extension helps people to give it a try. In
> particular server side were the evolve extension have nothing more
> to offer.
I suppose the last phrase is meant to be "In particular, server side where  
the evolve extension has nothing more to offer"

/contrib/ sounds like a strange place for an extension. It's meant to be  
that way, I suspect, in order to distinguish from "ready-to-use  
extensions", ain't it?

Patch

diff --git a/contrib/obs.py b/contrib/obs.py
new file mode 100644
--- /dev/null
+++ b/contrib/obs.py
@@ -0,0 +1,10 @@ 
+'''enable experimental obsolescence feature of Mercurial
+
+OBSOLESCENCE IS AN EXPERIMENTAL FEATURE MAKE SURE YOU UNDERSTOOD THE INVOLVED
+CONCEPT BEFORE USING IT.
+
+For client side usages it is recommended to use the evolve extension for
+improved user interface.'''
+
+import mercurial.obsolete
+mercurial.obsolete._enabled = True