Discussion:
[p4] Revert if Unchanged Does Not Function
Michael Mirman
2017-07-13 12:34:07 UTC
Permalink
How many files does it have to scan?
What happens if you run
p4 opened
p4 status
from the command line from the top of the workspace?
Are there any locks present? (p4 lockstat; p4 lockstat -C)
Is it possible there are other p4 commands running somewhere in the background? They may be holding/needing the same db table.

Is it possible it's a filer problem and not Perforce?
If the process on the server side is not doing anything (waiting for the data from the client), the problem is on the client side.

We just deployed 2017.2 P4V, so I am interested to see what this problem is.
--
Michael Mirman
MathWorks, Inc.
3 Apple Hill Drive, Natick, MA 01760
508-647-7555
-----Original Message-----
Behalf Of Doug Rogers
Sent: Wednesday, July 12, 2017 11:40 PM
Subject: Re: [p4] Revert if Unchanged Does Not Function
Posted on behalf of forum user 'Doug Rogers'.
P4V version: Helix Visual Client/NTX64/2017.2/1518788
Nothing is printed out after p4 verify.
p4 revert on a file just hangs on the command line.
P4 has been scanning files for hours, but I don't know what it's doing.
--
http://forums.perforce.com/index.php?/topic/5400-revert-if-unchanged-
does-not-function
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
htt
Michael Mirman
2017-07-13 14:07:13 UTC
Permalink
A couple more questions:
What server version are you running?
Do you have any renames in the opened files? If so, a few or a lot of renames?

We have just discovered that a certain revert command is hanging against 2017.1/1511680.
We are still investigating what's going on, but I wonder if you are running the same server.
--
Michael Mirman
MathWorks, Inc.
3 Apple Hill Drive, Natick, MA 01760
508-647-7555
-----Original Message-----
From: Michael Mirman
Sent: Thursday, July 13, 2017 8:34 AM
Subject: RE: [p4] Revert if Unchanged Does Not Function
How many files does it have to scan?
What happens if you run
p4 opened
p4 status
from the command line from the top of the workspace?
Are there any locks present? (p4 lockstat; p4 lockstat -C)
Is it possible there are other p4 commands running somewhere in the
background? They may be holding/needing the same db table.
Is it possible it's a filer problem and not Perforce?
If the process on the server side is not doing anything (waiting for the data
from the client), the problem is on the client side.
We just deployed 2017.2 P4V, so I am interested to see what this problem is.
--
Michael Mirman
MathWorks, Inc.
3 Apple Hill Drive, Natick, MA 01760
508-647-7555
-----Original Message-----
Behalf Of Doug Rogers
Sent: Wednesday, July 12, 2017 11:40 PM
Subject: Re: [p4] Revert if Unchanged Does Not Function
Posted on behalf of forum user 'Doug Rogers'.
P4V version: Helix Visual Client/NTX64/2017.2/1518788
Nothing is printed out after p4 verify.
p4 revert on a file just hangs on the command line.
P4 has been scanning files for hours, but I don't know what it's doing.
--
http://forums.perforce.com/index.php?/topic/5400-revert-if-unchanged-
does-not-function
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://mai
Michael Mirman
2017-07-13 15:27:55 UTC
Permalink
That doesn't count. :)
You'd need to pass -c clientname, and you need to know the client name.
P4V does this for you automatically, but if you don’t have P4CONFIG file, you need to specify the client name like this:
p4 -c clientname status

In any case, I wonder if you have files opened for move in your client, and what server version you are using.
All this information is available in P4V, but you can also get it from CLI -
p4 -c clientname opened | grep -c move/
p4 -c clientname info | grep Server
--
Michael Mirman
MathWorks, Inc.
3 Apple Hill Drive, Natick, MA 01760
508-647-7555
-----Original Message-----
Behalf Of Doug Rogers
Sent: Thursday, July 13, 2017 11:15 AM
Subject: Re: [p4] Revert if Unchanged Does Not Function
Posted on behalf of forum user 'Doug Rogers'.
Client 'DROGERS-DESKTOP' unknown - use 'client' command to
create it.
--
http://forums.perforce.com/index.php?/topic/5400-revert-if-unchanged-
does-not-function
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-us
Michael Mirman
2017-07-13 15:31:12 UTC
Permalink
I just realized you are probably on a Windows machine.
If you don’t have Unix commands on the path, you don’t have grep.
Just go back to P4V, look at the pending changes and see if there are moves. If so, are there just a few or many?
Then go to Help -> System Info and see what server version you are running against.
--
Michael Mirman
MathWorks, Inc.
3 Apple Hill Drive, Natick, MA 01760
508-647-7555
-----Original Message-----
Behalf Of Michael Mirman
Sent: Thursday, July 13, 2017 11:28 AM
Subject: Re: [p4] Revert if Unchanged Does Not Function
That doesn't count. :)
You'd need to pass -c clientname, and you need to know the client name.
P4V does this for you automatically, but if you don’t have P4CONFIG file, you
p4 -c clientname status
In any case, I wonder if you have files opened for move in your client, and
what server version you are using.
All this information is available in P4V, but you can also get it from CLI -
p4 -c clientname opened | grep -c move/
p4 -c clientname info | grep Server
--
Michael Mirman
MathWorks, Inc.
3 Apple Hill Drive, Natick, MA 01760
508-647-7555
-----Original Message-----
Behalf Of Doug Rogers
Sent: Thursday, July 13, 2017 11:15 AM
Subject: Re: [p4] Revert if Unchanged Does Not Function
Posted on behalf of forum user 'Doug Rogers'.
Client 'DROGERS-DESKTOP' unknown - use 'client' command to
create it.
--
http://forums.perforce.com/index.php?/topic/5400-revert-if-unchanged-
does-not-function
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/m
Loading...