Add the |reverse filter for patches.
    
        | author | Steve Losh <steve@stevelosh.com> | 
    
        | date | Tue, 24 Nov 2009 19:41:35 -0500 | 
    
    
        | parents | 13f545e329eb | 
    
        | children | 89912d294ece | 
    
        | branches/tags | (none) | 
    
        | files | prompt.py | 
Changes
    
--- a/prompt.py	Tue Nov 24 19:39:44 2009 -0500
+++ b/prompt.py	Tue Nov 24 19:41:35 2009 -0500
@@ -232,6 +232,9 @@
         
         patches = repo.mq.series
         
+        if _get_filter('reverse', g):
+            patches = reversed(patches)
+        
         return _with_groups(out_g, sep.join(patches)) if patches else ''
     
     def _root(m):
@@ -318,7 +321,7 @@
         'branch': _branch,
         'node(?:(\|short)|(\|merge))*': _node,
         'patch(?:(\|applied)|(\|unapplied)|(\|count))?': _patch,
-        'patches(?:(\|join\(.*?\)))*': _patches,
+        'patches(?:(\|join\(.*?\))|(\|reverse))*': _patches,
         'rev(\|merge)?': _rev,
         'root': _root,
         'root\|basename': _basename,