From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4524 invoked by alias); 16 Jan 2014 15:16:07 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 32264 Received: (qmail 25355 invoked from network); 16 Jan 2014 15:16:01 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_PASS autolearn=ham version=3.3.2 From: Frank Terbeck To: zsh-workers@zsh.org Cc: Benjamin Peterson Subject: [PATCH] vcs_info, hg: Support detecting repos using ShareExtension Date: Thu, 16 Jan 2014 16:05:11 +0100 Message-Id: <1389884711-14831-1-git-send-email-ft@bewatermyfriend.org> X-Mailer: git-send-email 1.8.4 In-Reply-To: <1389883299.24740.71559021.64C873AD@webmail.messagingengine.com> References: <1389883299.24740.71559021.64C873AD@webmail.messagingengine.com> X-Df-Sender: NDMwNDQ0 --- Benjamin Peterson wrote: > shared repos have a file .hg/sharedpath if that helps If that's indeed the case, the following should make backend detect such repositories. I don't know if supporting this requires changes to the _get_data function as well. Would be good if someone could test this before I push the patch to the repo... Regards, Frank Functions/VCS_Info/Backends/VCS_INFO_detect_hg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Functions/VCS_Info/Backends/VCS_INFO_detect_hg b/Functions/VCS_Info/Backends/VCS_INFO_detect_hg index a22c1ee..d7b1d0d 100644 --- a/Functions/VCS_Info/Backends/VCS_INFO_detect_hg +++ b/Functions/VCS_Info/Backends/VCS_INFO_detect_hg @@ -7,7 +7,7 @@ setopt localoptions NO_shwordsplit [[ $1 == '--flavours' ]] && { print -l hg-git hg-hgsubversion hg-hgsvn; return 0 } VCS_INFO_check_com ${vcs_comm[cmd]} || return 1 -vcs_comm[detect_need_file]="store data" +vcs_comm[detect_need_file]="store data sharedpath" VCS_INFO_bydir_detect '.hg' || return 1 if [[ -d ${vcs_comm[basedir]}/.hg/svn ]] ; then -- 1.8.4