changeset 483:b12ff7ef35b1

Introduction of olog as an alias This will won't stay as such long.
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Thu, 23 Aug 2012 12:53:27 +0200
parents d2531a747ff5
children 20e2f2dd71f1
files README hgext/obsolete.py tests/test-evolve.t
diffstat 3 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/README	Thu Aug 23 12:51:06 2012 +0200
+++ b/README	Thu Aug 23 12:53:27 2012 +0200
@@ -54,6 +54,7 @@
 - summary now reports troubles changesets
 - new touch command
 - new fold command
+- new basic olog alias
 
 - rebase refuse to work on public changeset again
 - rebase explicitly state that there is nothing to rebase because everything is
--- a/hgext/obsolete.py	Thu Aug 23 12:51:06 2012 +0200
+++ b/hgext/obsolete.py	Thu Aug 23 12:53:27 2012 +0200
@@ -658,6 +658,8 @@
         ui.setconfig('alias', 'pstatus', 'status --rev .^')
     if ui.config('alias', 'pdiff', None) is None:
         ui.setconfig('alias', 'pdiff', 'diff --rev .^')
+    if ui.config('alias', 'olog', None) is None:
+        ui.setconfig('alias', 'olog', "log -r 'precursors(.)' --hidden")
 
 # - "troubles" method on changectx
 
--- a/tests/test-evolve.t	Thu Aug 23 12:51:06 2012 +0200
+++ b/tests/test-evolve.t	Thu Aug 23 12:53:27 2012 +0200
@@ -574,3 +574,9 @@
   ***
   
   conflict
+
+Test olog
+
+  $ hg olog
+  6	: add 1 - test
+  10	: conflict - test