zsh-workers
 help / color / mirror / code / Atom feed
* vcs_info for mercurial doesn't detect shared repos
@ 2014-01-16  1:59 Benjamin Peterson
  2014-01-16  9:14 ` Frank Terbeck
  0 siblings, 1 reply; 7+ messages in thread
From: Benjamin Peterson @ 2014-01-16  1:59 UTC (permalink / raw)
  To: zsh-workers

Hi,
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.

[1] http://mercurial.selenic.com/wiki/ShareExtension

-- 
Regards,
Benjamin


^ permalink raw reply	[flat|nested] 7+ messages in thread
* Re: vcs_info for mercurial doesn't detect shared repos
@ 2014-01-16 14:43 Benjamin Peterson
  0 siblings, 0 replies; 7+ messages in thread
From: Benjamin Peterson @ 2014-01-16 14:43 UTC (permalink / raw)
  To: Frank Terbeck; +Cc: zsh-workers



On Thu, Jan 16, 2014, at 01:14 AM, Frank Terbeck wrote:
> 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.

I see. Tricky!

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

shared repos have a file .hg/sharedpath if that helps
--
Regards,
Benjamin


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-01-17  8:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-16  1:59 vcs_info for mercurial doesn't detect shared repos Benjamin Peterson
2014-01-16  9:14 ` Frank Terbeck
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

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).