Source

perfarce-patches / skiplist.diff

Full commit
# HG changeset patch
# User Dan Villiom Podlaski Christiansen <dan@cabo.dk>
# Date 1337332659 -7200
# Node ID 3a0646317a7bc5dc80069558a1ac49dfe81a7f9a
# Parent  662e9c49ba18f592bdbddaa13a2c9d4ec1b268f9
add support for skipping certain changesets

diff --git a/perfarce.py b/perfarce.py
--- a/perfarce.py
+++ b/perfarce.py
@@ -905,10 +905,12 @@ class p4client(object):
         else:
             p4cmd = 'changes -s submitted -L %s' % p4cset
 
+        skiplist = ui.configlist('perfarce', 'skiprevs')
+
         changes = []
         for d in client.run(p4cmd):
             c = int(d['change'])
-            if startrev or c != p4id:
+            if str(c) not in skiplist and (startrev or c != p4id):
                 changes.append(c)
         changes.sort()