[PATCH seda] [migration] Don't ask_confirm to commit

Sylvain Thenault sylvain.thenault at logilab.fr
Wed Dec 13 09:55:59 CET 2017


# HG changeset patch
# User Sylvain Thénault <sylvain.thenault at logilab.fr>
# Date 1513155256 -3600
#      Wed Dec 13 09:54:16 2017 +0100
# Node ID ad4051ee66b9934d56cd8f57742b451b74793326
# Parent  db4351e488d4d9dd08209fad232a44c7f95d83f3
# Available At https://hg.logilab.org/review/cubes/seda
#              hg pull https://hg.logilab.org/review/cubes/seda -r ad4051ee66b9
[migration] Don't ask_confirm to commit

this is so annoying.

diff --git a/cubicweb_seda/migration/0.13.0_Any.py b/cubicweb_seda/migration/0.13.0_Any.py
--- a/cubicweb_seda/migration/0.13.0_Any.py
+++ b/cubicweb_seda/migration/0.13.0_Any.py
@@ -7,10 +7,10 @@ parent_rtypes = [rtype for _, rtype in M
 for rtype in parent_rtypes:
     for peid, in rql('Any P GROUPBY P WHERE X {} P HAVING COUNT(X) > 1'.format(rtype)):
         for idx, child in enumerate(rql('Any X WHERE X {} P, P eid %(p)s'.format(rtype),
                                     {'p': peid}).entities()):
             child.cw_set(ordering=idx + 1)
-    commit()
+    commit(ask_confirm=False)
 
 rql('SET X ordering 1 WHERE X ordering NULL')
 
-commit()
+commit(ask_confirm=False)


More information about the saem-devel mailing list