hgext: add a simpler extension to enable obsolete on server
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Fri, 25 Jan 2013 17:26:47 +0100
changeset 660 e6e47c432ffd
parent 659 1db801bcd08f
child 662 40854e956315
child 668 c5a5e9f2c959
hgext: add a simpler extension to enable obsolete on server
hgext/simple4server.py
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/hgext/simple4server.py	Fri Jan 25 17:26:47 2013 +0100
@@ -0,0 +1,12 @@
+'''enable experimental obsolescence feature of Mercurial
+
+OBSOLESCENCE IS AN EXPERIMENTAL FEATURE MAKE SURE YOU UNDERSTOOD THE INVOLVED
+CONCEPT BEFORE USING IT.
+
+/!\ THIS EXTENSION IS INTENDED FOR SERVER SIDE ONLY USAGE /!\
+
+For client side usages it is recommended to use the evolve extension for
+improved user interface.'''
+
+import mercurial.obsolete
+mercurial.obsolete._enabled = True