# HG changeset patch
# User Houzefa Abbasbhay <houzefa.abba@xcg-consulting.fr>
# Date 1552587679 -3600
#      Thu Mar 14 19:21:19 2019 +0100
# Node ID 144c75bea80447438bac6d65df85166369cdfb1f
# Parent  0ef6cfd015f067ff06d406ae469ea891f1b01412
update_duplicate_sources: hg push --publish

Add that arg to bypass the ``auto-publish = abort`` setting I have in my
``.hgrc``.

diff --git a/update_duplicate_sources b/update_duplicate_sources
--- a/update_duplicate_sources
+++ b/update_duplicate_sources
@@ -58,10 +58,10 @@
     if [[ "x$branch_exist" != "x0" ]];
     then
         echo "${YELLOW}INFO ${RESET} - Pushing new branch $branch"
-        hg push --new-branch
+        hg push --new-branch --publish
     else
         echo "${YELLOW}INFO ${RESET} - Pushing branch $branch"
-        hg push
+        hg push --publish
     fi
     popd
     rm -rf ${source_name}