Patchwork [3,of,5,perfarce] add support for skipping certain changesets

login
register
mail settings
Submitter Dan Villiom Podlaski Christiansen
Date Nov. 29, 2014, 2:52 p.m.
Message ID <d85252d09b88e14b703f.1417272730@dookie.local>
Download mbox | patch
Permalink /patch/6885/
State Not Applicable
Headers show

Comments

Dan Villiom Podlaski Christiansen - Nov. 29, 2014, 2:52 p.m.
# HG changeset patch
# User Dan Villiom Podlaski Christiansen <dan@cabo.dk>
# Date 1417271360 -3600
#      Sat Nov 29 15:29:20 2014 +0100
# Node ID d85252d09b88e14b703f0db17a6b5dd5cadbfbed
# Parent  a6699b8868ea9892c34b15e9df9cbe3525c981b9
add support for skipping certain changesets

Patch

diff --git a/perfarce.py b/perfarce.py
--- a/perfarce.py
+++ b/perfarce.py
@@ -1020,10 +1020,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()