Discussion:
[p4] File checked out by another user
david jones
2009-02-02 15:41:04 UTC
Permalink
Hi

A user has checked out a file and I can see it in his pending changelist as
well as well as some other files, he is on holiday. I want to remove a file
from this pending changelist which is default and no number attached to it.
So how do I remove this file from a pending changelist? I don't want to
delete the clients account or his workspace?

David.
Rick Macdonald
2009-02-02 17:40:40 UTC
Permalink
Post by david jones
Hi
A user has checked out a file and I can see it in his pending changelist as
well as well as some other files, he is on holiday. I want to remove a file
from this pending changelist which is default and no number attached to it.
So how do I remove this file from a pending changelist? I don't want to
delete the clients account or his workspace?
David.
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
Do you care if you lose his changes to the open file?

"revert -k" might be what you want. It seems to me that it wouldn't
matter if you revert the file now or wait until he gets back from
vacation, but you didn't explain why you need to revert the file now.

The -k flag bypasses the client file refresh. It can be used to
make the server believe the file is no longer open, but keeps
the file unchanged in the client workspace.

Rick
Dave Lewis
2009-02-02 17:44:51 UTC
Permalink
why do you need to do this? anyway, as admin you can revert the file.
Post by david jones
Hi
A user has checked out a file and I can see it in his pending changelist as
well as well as some other files, he is on holiday. I want to remove a file
from this pending changelist which is default and no number attached to it.
So how do I remove this file from a pending changelist? I don't want to
delete the clients account or his workspace?
David.
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
Michael Delaney
2009-02-02 18:06:03 UTC
Permalink
You can use 'p4 revert' to do this. You'll have to specify the machine,
username, and clientspec to use but it's possible to accomplish.

See 'p4 help revert' for details; see the global opts for the machine,
username, and clientspec information.
Post by david jones
Hi
A user has checked out a file and I can see it in his pending changelist as
well as well as some other files, he is on holiday. I want to remove a file
from this pending changelist which is default and no number attached to it.
So how do I remove this file from a pending changelist? I don't want to
delete the clients account or his workspace?
David.
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
Heather Van Steenburgh
2009-02-02 21:22:52 UTC
Permalink
I was also wondering why you would want/need to do that. Does it have a
filetype that specifies exclusive open? Is it's not exclusive, then it
wouldn't really matter if the user keeps it checked out while he's on
vacation. Or is there something special about your process that doesn't
allow for extended checkouts?

-----Original Message-----
From: perforce-user-***@perforce.com
[mailto:perforce-user-***@perforce.com] On Behalf Of Michael Delaney
Sent: Monday, February 02, 2009 10:06 AM
To: david jones
Cc: perforce-***@perforce.com
Subject: Re: [p4] File checked out by another user

You can use 'p4 revert' to do this. You'll have to specify the machine,
username, and clientspec to use but it's possible to accomplish.

See 'p4 help revert' for details; see the global opts for the machine,
username, and clientspec information.
Post by david jones
Hi
A user has checked out a file and I can see it in his pending
changelist as
Post by david jones
well as well as some other files, he is on holiday. I want to remove a file
from this pending changelist which is default and no number attached to it.
So how do I remove this file from a pending changelist? I don't want to
delete the clients account or his workspace?
David.
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user
G Barthelemy
2009-02-02 18:15:04 UTC
Permalink
Post by david jones
Hi
A user has checked out a file and I can see it in his pending changelist as
well as well as some other files, he is on holiday. I want to remove a file
from this pending changelist which is default and no number attached to it.
So how do I remove this file from a pending changelist? I don't want to
delete the clients account or his workspace?
David.
Hi David,

Just impersonate the user and their client with a revert command.
Depending on how the client has been set (is it locked to its owner,
does it have a Host set ?), then you may need some of p4 global
options. You may need to obtain a ticket as that user on the machine
that you run the commands from, and for this you will need to be
superuser. Typically:

p4 login johndoe
p4 -u johndoe -c johndoe_client -H johndoe_laptop revert -c 123456 -k
//depot/path/to/file.c

-k prevents refreshing the file in the user's workspace, just in case
the user made changes that should be kept (only relevant if you have
access to the client's storage). I would send an email to the user who
would then have the opportunity to re conciliate his now unopened file
with the depot, starting with using "p4 diff -se".

Guillaume
Looney, James B
2009-02-02 21:45:35 UTC
Permalink
You should also be able to use 'p4 reopen <filename>' to take ownership of that file without losing any changes. We try not to do that, but sometimes have to when situations like vacations/retirement/quitting arise. However, our workspaces are kept on a server (totally different discussion if you're wondering about why), so we are able to hop into each other's codelines with relative ease.
Post by Heather Van Steenburgh
-----Original Message-----
Sent: Monday, February 02, 2009 8:41 AM
Subject: [p4] File checked out by another user
Hi
A user has checked out a file and I can see it in his pending
changelist as
well as well as some other files, he is on holiday. I want to
remove a file
from this pending changelist which is default and no number
attached to it.
So how do I remove this file from a pending changelist? I
don't want to
delete the clients account or his workspace?
David.
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
Loading...