changeset 497:43e1b2cab789

evolve: add the odiff alias
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Fri, 24 Aug 2012 11:52:49 +0200
parents d3d9df795b4d
children 53d7e3413337
files enable.sh hgext/evolve.py
diffstat 2 files changed, 2 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/enable.sh	Fri Aug 24 11:39:22 2012 +0200
+++ b/enable.sh	Fri Aug 24 11:52:49 2012 +0200
@@ -29,14 +29,6 @@
 # needed by evolve
 hgext.rebase=
 evolve=XXXREPOPATHXXX/hgext/evolve.py
-
-
-[alias]
-### useful alias to check future amend result
-# equivalent to the qdiff command for mq
-
-# diff with the previous amend
-odiff=diff --rev 'limit(precursors(.),1)' --rev .
 EOF
 
 cat << EOF >&2
--- a/hgext/evolve.py	Fri Aug 24 11:39:22 2012 +0200
+++ b/hgext/evolve.py	Fri Aug 24 11:52:49 2012 +0200
@@ -647,6 +647,8 @@
         ui.setconfig('alias', 'pdiff', 'diff --rev .^')
     if ui.config('alias', 'olog', None) is None:
         ui.setconfig('alias', 'olog', "log -r 'precursors(.)' --hidden")
+    if ui.config('alias', 'odiff', None) is None:
+        ui.setconfig('alias', 'odiff', "diff --rev 'limit(precursors(.),1)' --rev .")
 
 # - "troubles" method on changectx