Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Minor VCS Info things



On 2008-09-23 at 17:02 +0100, Peter Stephenson wrote:
> I've done this.  It seems to work OK.

As a side note: there's a scenario I have at $work where use-server
won't work but the simple case will: multiple P4 servers and the file
named by $P4CONFIG, in the root directory of the client, setting P4PORT
to the correct server.

I don't know of a way to deal with this for the use-server case, since
environment variables can't be auto-set by directory (although I could
use precmd() to mangle that in, just for this, I suppose).

So ...

> Index: Doc/Zsh/contrib.yo
[...]
> +until it is removed by hand.  If you do not set this style, the tt(p4)
> +backend is only usable if you have set the environment variable
> +tt(P4CONFIG) to a file name and have corresponding files in the root
> +directories of each Perforce client.  See comments in the function
> +tt(VCS_INFO_detect_p4) for more detail.

Suggest adding before the "See comments[...]" sentence:

  Using the tt(P4CONFIG) method may function better in environments with
  multiple P4 servers where tt(P4PORT) is set in the file named by
  tt(P4CONFIG).

-Phil



Messages sorted by: Reverse Date, Date, Thread, Author