Jump to content


rasonage

Member Since 11 Aug 2019
Offline Last Active Aug 30 2019 12:04 AM
-----

Posts I've Made

In Topic: p4 command line to access multiple connections?

30 August 2019 - 12:09 AM

looks like I have to write the tool in one of the latter ways you mentioned, though I was having some trouble with running "p4 clients." It would only list one of two things.. clients of the user's current connection, or all known clients EXCEPT other client connections of the current user (that would still only list the current connected client, which as before... I need all of the clients of the current user). and the last option is similar to one work around I was trying but come into a problem if a user is trying to do something on a connection the tool hasn't been connected to before so it couldn't learn of said connection.

Thanks for your time.

In Topic: p4 command line to access multiple connections?

28 August 2019 - 11:18 PM

I'm writing a tool that does some of the basic p4 functions, but it I found a bug where if you're working with a file that's part of a different connection than what the user currently has in their environment settings, the p4 part of the tool won't check out, mark for add, sync, shelve, or submit said file, and checking out a file for edit or add makes said file write-able... if a file isn't write-able things can break and cause other issues.

I had also intended the p4 part of  the tool to work in a batch process, of the which are not supposed to be babysat and should work even if the user forgot to switch their connection/environment variables in p4v (or if we're working across a multitude of projects, each a possible separate p4 connection).

While I could have the tool/script search an entire system for every p4config file, that slows things to a crawl while that process is running, or I could have the tool save its own p4config file locally that saves each connection environment settings every time that tool is used (but for cases where a user is trying to access files of a depot never before accessed by that tool, it will break), I noticed the p4v - connection - environment settings accomplishes this in a flash by unchecking and rechecking "Use current connection for environment settings". Hence why I'd like to access that functionality.

In Topic: p4 command line to access multiple connections?

27 August 2019 - 11:41 PM

the problem I'm running into is, using your example:
if my workspace is set to P4PORT=computer:1666>c:\main\ then P4CONFIG variable is already pointing to p4config.txt (P4CONFIG only points to a file, not it's path, so I can't have a p4config file outside of the current connection) and I can't access the information from c:\test\999\p4config.txt.
I need to derive and access the root path of the second and third connection (and other subsequent connections) while in the first connection.

In Topic: p4 command line to access multiple connections?

22 August 2019 - 06:49 PM

Thanks for responding, but I was already using the windows command line, not the one from p4v
and when one connection's environment is set up I can't see a way to access environment settings from other connections as user has, and that's what I need to do.

In Topic: p4exp doesn't work in file dialogues

22 August 2019 - 01:38 AM

Maya 2016 sp3

I am able to use it in other file dialogues like UE4, so I guess it's just maya.