[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
84/86: etc/committer: Define delay duration as a variable.
From: |
guix-commits |
Subject: |
84/86: etc/committer: Define delay duration as a variable. |
Date: |
Wed, 7 Apr 2021 21:22:18 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit 56270c1275d8dcdec80c04c032079b694204052a
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Thu Apr 8 02:59:55 2021 +0200
etc/committer: Define delay duration as a variable.
* etc/committer.scm.in (%delay): New variable.
(main): Use it.
---
etc/committer.scm.in | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/etc/committer.scm.in b/etc/committer.scm.in
index 824483e..8744bae 100755
--- a/etc/committer.scm.in
+++ b/etc/committer.scm.in
@@ -236,6 +236,8 @@ modifying."
(cons* new (old-sexp (first hunks)) hunks)))
(group-hunks-by-sexp hunks)))
+(define %delay 1000)
+
(define (main . args)
(match (diff-info)
(()
@@ -263,10 +265,10 @@ modifying."
(let ((port (open-pipe* OPEN_WRITE "git" "commit" "-F"
"-")))
(add-commit-message (hunk-file-name hunk)
variable-name port)
- (sleep 1)
+ (usleep %delay)
(unless (eqv? 0 (status:exit-val (close-pipe port)))
(error "Cannot commit"))))
- (sleep 1))
+ (usleep %delay))
definitions)
;; Changes.
@@ -280,7 +282,7 @@ modifying."
(hunk->patch hunk port)
(unless (eqv? 0 (status:exit-val (close-pipe
port)))
(error "Cannot apply")))
- (sleep 1))
+ (usleep %delay))
hunks)
(change-commit-message (hunk-file-name (first hunks))
old new
@@ -289,7 +291,7 @@ modifying."
(change-commit-message (hunk-file-name (first hunks))
old new
port)
- (sleep 1)
+ (usleep %delay)
(unless (eqv? 0 (status:exit-val (close-pipe port)))
(error "Cannot commit")))))
(new+old+hunks changes))))))
- 57/86: gnu: r-spatstat-core: Update to 2.0-0., (continued)
- 57/86: gnu: r-spatstat-core: Update to 2.0-0., guix-commits, 2021/04/07
- 58/86: gnu: r-spatstat-linnet: Update to 2.1-1., guix-commits, 2021/04/07
- 63/86: gnu: r-slider: Update to 0.2.1., guix-commits, 2021/04/07
- 79/86: gnu: r-xml: Update to 3.99-0.6., guix-commits, 2021/04/07
- 64/86: gnu: r-tidyposterior: Update to 0.1.0., guix-commits, 2021/04/07
- 70/86: gnu: r-bbotk: Update to 0.3.2., guix-commits, 2021/04/07
- 77/86: gnu: r-catools: Update to 1.18.2., guix-commits, 2021/04/07
- 83/86: etc/committer: Handle package additions., guix-commits, 2021/04/07
- 65/86: gnu: r-altmeta: Update to 3.3., guix-commits, 2021/04/07
- 78/86: gnu: r-rsqlite: Update to 2.2.5., guix-commits, 2021/04/07
- 84/86: etc/committer: Define delay duration as a variable.,
guix-commits <=
- 82/86: gnu: r-sn: Update to 2.0.0., guix-commits, 2021/04/07
- 69/86: gnu: r-mlr3learners: Update to 0.4.5., guix-commits, 2021/04/07
- 61/86: gnu: r-muhaz: Update to 1.2.6.3., guix-commits, 2021/04/07
- 71/86: gnu: r-textshaping: Update to 0.3.3., guix-commits, 2021/04/07
- 80/86: gnu: r-e1071: Update to 1.7-6., guix-commits, 2021/04/07
- 81/86: gnu: r-sfsmisc: Update to 1.1-10., guix-commits, 2021/04/07
- 68/86: gnu: r-mlr3misc: Update to 0.8.0., guix-commits, 2021/04/07
- 85/86: etc/committer: Record minimal context for hunks to avoid problems., guix-commits, 2021/04/07
- 75/86: gnu: r-survival: Update to 3.2-10., guix-commits, 2021/04/07