Thread (19 messages) flat view 19 messages, 3 authors, 2016-06-15

Re: [StGit PATCH 4/5] Convert "sink" to the new infrastructure

From: Karl Hasselström <hidden>
Date: 2016-06-15 22:46:23

Nicely done.

  Acked-by: Karl Hasselström [off-list ref]

On 2009-03-12 12:09:13 +0000, Catalin Marinas wrote:
+    applied = applied[:insert_idx] + patches + applied[insert_idx:]
+
+    unapplied = [p for p in stack.patchorder.unapplied if p not in patches]
+    hidden = list(stack.patchorder.hidden)
+
+    iw = stack.repository.default_iw
+    clean_iw = not options.keep and iw or None
+    trans = transaction.StackTransaction(stack, 'sink',
+                                         check_clean_iw = clean_iw)
+
+    try:
+        trans.reorder_patches(applied, unapplied, hidden, iw)
Hmm. We should maybe have a default value for hidden: the current list
of patches. Not changing the hidden patches is a common operation.

-- 
Karl Hasselström, kha@treskal.com
      www.treskal.com/kalle
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help