Discussion:
[p4] Finding default changelists
Jonathan Arnold
2004-10-06 14:22:38 UTC
Permalink
The command

p4 changes -u username -s pending

doesn't display clients with files in their Default changelist. I
guess it just displays changelists that have been submitted, but
not resolved.

How can a user find out all their clients that have any checked
out files? You can look in p4win in the Pending Changelist
window and see all the default changelists, but you can't filter
that list at all (you can sort it, but not filter it). So it must
get the info from somewhere. What command does it use?
--
Jonathan Arnold (mailto:***@buddydog.org)
Amazing Developments http://www.buddydog.org

Sometimes the mind, for reasons we don't necessarily understand,
just decides to go to the store for a quart of milk.
Jim Crossley
2004-10-06 14:36:22 UTC
Permalink
p4 opened -a

Hint: right-click the lower pane in p4win and select "Show p4 commands"

Jim

-----Original Message-----
From: perforce-user-***@perforce.com on behalf of Jonathan Arnold
Sent: Wed 10/6/2004 10:22 AM
To: 'perforce-***@perforce.com'
Cc:
Subject: [p4] Finding default changelists
The command

p4 changes -u username -s pending

doesn't display clients with files in their Default changelist. I
guess it just displays changelists that have been submitted, but
not resolved.

How can a user find out all their clients that have any checked
out files? You can look in p4win in the Pending Changelist
window and see all the default changelists, but you can't filter
that list at all (you can sort it, but not filter it). So it must
get the info from somewhere. What command does it use?
--
Jonathan Arnold (mailto:***@buddydog.org)
Amazing Developments http://www.buddydog.org

Sometimes the mind, for reasons we don't necessarily understand,
just decides to go to the store for a quart of milk.
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user
Todd Short (tshort)
2004-10-06 14:46:54 UTC
Permalink
Try:

p4 opened -a | grep username

Or on Windows:

p4 opened -a | find "username"

To be more precise, the username should really be:

" username@"

--
-Todd Short
// ***@cisco.com
// "One if by land, two if by sea, three if by the Internet."
Post by Jim Crossley
-----Original Message-----
Sent: Wednesday, October 06, 2004 10:23 AM
Subject: [p4] Finding default changelists
The command
p4 changes -u username -s pending
doesn't display clients with files in their Default changelist. I
guess it just displays changelists that have been submitted, but
not resolved.
How can a user find out all their clients that have any checked
out files? You can look in p4win in the Pending Changelist
window and see all the default changelists, but you can't filter
that list at all (you can sort it, but not filter it). So it must
get the info from somewhere. What command does it use?
--
Amazing Developments http://www.buddydog.org
Sometimes the mind, for reasons we don't necessarily understand,
just decides to go to the store for a quart of milk.
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
jab
2004-10-06 14:55:04 UTC
Permalink
Post by Jonathan Arnold
How can a user find out all their clients that have any checked
out files? You can look in p4win in the Pending Changelist
window and see all the default changelists, but you can't filter
that list at all (you can sort it, but not filter it). So it must
get the info from somewhere. What command does it use?
The last answer, first: turn on "show P4 Commands" in the status
pane of "p4win", and it'll answer that question for you.

Odds are very, very good that you're encountering a couple of
outputs from "p4 opened" that you're not used to knowing are
there:
1) "p4 opened" returns the list of opened files on this workspace,
but tells you all the changelists for this specific workspace, so
you get more than just "the default changelist info".
2) "p4 -Ztag opened" returns a wealth of other fields (columns)
from the same database query, with just about the same
overhead to get it. This information, which GUIs can get
to quickly, will show things like local pathnames of the opened
files, which isn't normally in "p4 opened" formatted output.

"p4 -Ztag cmd" is often handy for such questions - it's the first step
when you're writing scripts and don't want to parse the output too much.
(The next step is "p4 -G / p4 -R" for Python/Ruby marshal objects; the
step after that is Tony Smith's P4Perl/P4Ruby. Some claim that the next
step after that is the C++ API, directly, but I've found the earlier
options to
be so easy to use that the direct API isn't as necessary.)

-Jeff Bowles
G. Matthew Rice
2004-10-06 15:23:16 UTC
Permalink
Post by Jonathan Arnold
p4 changes -u username -s pending
doesn't display clients with files in their Default changelist. I
guess it just displays changelists that have been submitted, but
not resolved.
It could also be changes that have been created with 'p4 change' and never
submitted.
Post by Jonathan Arnold
How can a user find out all their clients that have any checked
out files? You can look in p4win in the Pending Changelist
Take a look at 'p4 opened'.

HTH,
--
g. matthew rice <***@starnix.com> starnix, thornhill, ontario, ca
phone: 905-771-0017 x242 gpg id: EF9AAD20
http://www.starnix.com professional linux services & products
Loading...