82a4a9aba8f6

Changed how 'unapplied' patch collection is calculated to handle guarded patches
[view raw] [browse files]
author Iain Lowe <ilowe@taimma.com>
date Thu, 22 Apr 2010 11:49:12 -0400
parents d12025340b02
children 8ca1c9929313
branches/tags (none)
files prompt.py

Changes

diff -r d12025340b02 -r 82a4a9aba8f6 prompt.py
--- a/prompt.py	Wed Jan 20 19:07:42 2010 -0500
+++ b/prompt.py	Thu Apr 22 11:49:12 2010 -0400
@@ -181,7 +181,7 @@
         
         patches = repo.mq.series
         applied = [p.name for p in repo.mq.applied]
-        unapplied = [p[1] for p in repo.mq.unapplied(repo)]
+        unapplied = filter(lambda x: x not in applied, patches)
         
         if _get_filter('hide_applied', g):
             patches = filter(lambda p: p not in applied, patches)