zsh-workers
 help / color / mirror / code / Atom feed
From: Frank Terbeck <ft@bewatermyfriend.org>
To: Benjamin Peterson <bp@benjamin-peterson.org>
Cc: zsh-workers@zsh.org
Subject: Re: vcs_info for mercurial doesn't detect shared repos
Date: Thu, 16 Jan 2014 10:14:49 +0100	[thread overview]
Message-ID: <87ha94b852.fsf@ft.bewatermyfriend.org> (raw)
In-Reply-To: <1389837583.24091.71345781.48879D2E@webmail.messagingengine.com> (Benjamin Peterson's message of "Wed, 15 Jan 2014 17:59:43 -0800")

Benjamin Peterson wrote:
> Hi,

Hey!

> The hg share extension [1] lets you have multiple working trees with
> with the same backing repository. It seems vcs_info fails to detect
> working copies where the share extension is used because those .hg dirs
> don't contain "store" or "data" subdirectories as the VCS detection
> requires. It think it would be safer to look for the "hgrc" or "branch"
> file.

We used to use ‘branch’ as the file to check for but moved away from it,
because it didn't work reliably with newer versions of mercurial (this
might have changed again in the meantime, since I don't follow
mercurial's development too closely).

Checking for ‘hgrc’ is not an option, because ~/.hg/hgrc is a possible
configuration file location, which would lead to false positives in the
user's home directory.

If a mercurial developer has an idea on how to properly detect this
particular extension, I'd be all ears. ;)


Regards, Frank

-- 
In protocol design, perfection has been reached not when there is
nothing left to add, but when there is nothing left to take away.
                                                  -- RFC 1925


  reply	other threads:[~2014-01-16  9:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-16  1:59 Benjamin Peterson
2014-01-16  9:14 ` Frank Terbeck [this message]
2014-01-16 14:41   ` Benjamin Peterson
2014-01-16 15:05     ` [PATCH] vcs_info, hg: Support detecting repos using ShareExtension Frank Terbeck
2014-01-17  5:48       ` Benjamin Peterson
2014-01-17  8:01         ` Frank Terbeck
2014-01-16 14:43 vcs_info for mercurial doesn't detect shared repos Benjamin Peterson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ha94b852.fsf@ft.bewatermyfriend.org \
    --to=ft@bewatermyfriend.org \
    --cc=bp@benjamin-peterson.org \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).