zsh-workers
 help / color / mirror / code / Atom feed
* Re: vcs_info for mercurial doesn't detect shared repos
@ 2014-01-16 14:43 Benjamin Peterson
  0 siblings, 0 replies; 4+ 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] 4+ messages in thread

* Re: vcs_info for mercurial doesn't detect shared repos
  2014-01-16  9:14 ` Frank Terbeck
@ 2014-01-16 14:41   ` Benjamin Peterson
  0 siblings, 0 replies; 4+ messages in thread
From: Benjamin Peterson @ 2014-01-16 14:41 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


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

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

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


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

* 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; 4+ 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] 4+ messages in thread

end of thread, other threads:[~2014-01-16 14:43 UTC | newest]

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