Make all check in/out of the same user, me
Posted 12 August 2020 - 01:15 PM
I am a single user using Perforce. I am not an advanced user nor have I needed to use any advanced features before, just simple check in and check out.
I recently switched computers and I had to take my depot from one to another. That is all well in a way.
Now I had a couple of files open before this move. After the move to the new computer, I try to open the same files again via SCCPlugIn (I use Perforce via VFP Project Manager), it will not check out the file, stating that the files are already open by another user. Well I am the only user.
So my question is how can I get everything aligned to one, present user? Is there an SQL like command that I can simply execute to get to the present user?
Please advise and pardon my ignorance
Posted 12 August 2020 - 02:39 PM
Did you move your workspace as well as the server? Is your username the same on the new computer as it was on the old one?
Posted 12 August 2020 - 03:12 PM
I just copied over the depot and installed the programs. My Windows user name is still the same "Bhavbhuti" but my older PC was named "DEVE1" and this laptop is named "Bhav". The configuration I have set is same as before when installing (I had old screen shots from the last install to follow) and there is a batchfile that I use the following command and config
"D:\Program Files (x86)\Perforce\p4.exe" set P4CONFIG="D:\PerforceDepot\VSOP4Config"
Posted 12 August 2020 - 03:51 PM
Posted 13 August 2020 - 07:09 AM
Trivia: UN Administrator is from one of my older PCs when WinNT allowed Administrator as a user, since then an administrator as UN is not an option, so I just continued using this as before
Posted 13 August 2020 - 07:10 AM
D:\VSO3\Projects\C43\Libs>p4 edit aapp.vcx
Client 'Bhavbhuti' can only be used from host 'DEVE1'.
Posted 13 August 2020 - 07:46 AM
Thanks and regards
Posted 13 August 2020 - 04:54 PM
Posted 13 August 2020 - 05:40 PM
Thanks for that, I will change it soon. Before I do so, I noticed this following comment. Is it possible to make them all the same, empty? No restrictions?
Also can I consolidate, all my Administrator and Bhavbhuti records into one? Default
# Owner: The Perforce user name of the user who owns the client
# workspace. The default is the user who created the
# client workspace.
I am all into using default, not that I am planning to switch any PC/Laptops but whenever I need to I can easily switch without relying on Windows dictating what my system username etc is. I just want to make all past and present records belong to the same username, client, workspace, owner, host, so on
Appreciating your ongoing help
Posted 13 August 2020 - 11:36 PM
Another option is to just set a P4HOST value that follows you from machine to machine. (I used to do this when I had a whole bunch of workspaces that I'd migrate when I got a new machine -- it was easier to just set my P4HOST to the name of the old machine than to update 20 client specs).
That's pretty much up to you -- if you consistently use the same username everywhere (as defined by your P4USER setting), then you'll only have one username. It's as simple as that. If you don't set P4USER, then it defaults to your login name on the local OS.
Posted 14 August 2020 - 08:12 AM
Should I be able to add P4HOST=DEVE1 to the config file that I have for easy setting purposes?
If so that would also remove the remaining variable. Please advise
Posted 14 August 2020 - 02:47 PM
Posted 15 August 2020 - 11:02 AM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users