From 9ce78f62c5c02ca352c17e8b2fbc1436f26b4d02 Mon Sep 17 00:00:00 2001
From: Thibault Charbonnier <thibaultcha@me.com>
Date: Wed, 25 Sep 2019 19:12:39 -0700
Subject: [PATCH] optimize: mirror-tarballs: used 'hg update --clean' to avoid
 being prompted when repository is cloned.

---
 util/mirror-tarballs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/util/mirror-tarballs b/util/mirror-tarballs
index 8c5ca97..c930f5a 100755
--- a/util/mirror-tarballs
+++ b/util/mirror-tarballs
@@ -975,7 +975,7 @@ cd $root/work/ || exit 1
 if [ -d nginx.org ]; then
     cd nginx.org/ || exit 1
     hg pull || exit 1
-    hg update || exit 1
+    hg update --clean || exit 1
     cd ..
 else
     hg clone http://hg.nginx.org/nginx.org || exit 1