Discussion:
[p4] Deleting Pending Changelist with Opened Files
Nellie Chen
2008-05-07 20:01:56 UTC
Permalink
Hi,

I would like to delete an old pending changelist for another user. However, there are opened files in that changelist. I cannot delete the client that has the opened files because the user is still using this client. I cannot revert the opened files in that client either because they are not on my machine, and the user is unable to revert the files either because the change is too old.

Is there a way to force delete this pending changelist, without doing a revert or deleting the client that has the opened files?

Thanks,
Nellie
Stephen Vance
2008-05-07 20:31:54 UTC
Permalink
You can't delete a changelist that has opened files in it.

I'm not sure what you mean that the "change is too old" to revert the
files. There's nothing in Perforce that would cause this. Can you explain?

You could reopen the files in another changelist and then delete the one
in question, but I'm not sure what benefit that provides.

Steve
Post by Nellie Chen
Hi,
I would like to delete an old pending changelist for another user. However, there are opened files in that changelist. I cannot delete the client that has the opened files because the user is still using this client. I cannot revert the opened files in that client either because they are not on my machine, and the user is unable to revert the files either because the change is too old.
Is there a way to force delete this pending changelist, without doing a revert or deleting the client that has the opened files?
Thanks,
Nellie
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
--
Stephen Vance
www.vance.com
Nellie Chen
2008-05-07 22:17:12 UTC
Permalink
Hi Stephen,

Thanks.

To clarify, the user is unable revert his change (and thus wants the pending changelist to be deleted) because he experienced a hard drive crash and the file is now out of sync with what he has in his workspace. So he would like to abandon his change before the crash altogether to avoid any confusion.

Perhaps it will be better to ask the user revert the change somehow in order to delete the pending changelist.

Nellie

-----Original Message-----
From: Stephen Vance [mailto:***@vance.com]
Sent: Wednesday, May 07, 2008 4:32 PM
To: Nellie Chen
Cc: perforce-***@perforce.com
Subject: Re: [p4] Deleting Pending Changelist with Opened Files

You can't delete a changelist that has opened files in it.

I'm not sure what you mean that the "change is too old" to revert the
files. There's nothing in Perforce that would cause this. Can you explain?

You could reopen the files in another changelist and then delete the one
in question, but I'm not sure what benefit that provides.

Steve
Post by Nellie Chen
Hi,
I would like to delete an old pending changelist for another user. However, there are opened files in that changelist. I cannot delete the client that has the opened files because the user is still using this client. I cannot revert the opened files in that client either because they are not on my machine, and the user is unable to revert the files either because the change is too old.
Is there a way to force delete this pending changelist, without doing a revert or deleting the client that has the opened files?
Thanks,
Nellie
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
--
Stephen Vance
www.vance.com
Dave Lewis
2008-05-08 02:13:56 UTC
Permalink
you should be able to revert the files as admin on another machine.
you'll have to use the -h (or -H) and -c to specify the host and
client. obviously, this won't change the files in the user's
workspace... I would advise checking the status of those files to see
what revision they really are, if changes have been made, etc. and
make sure things are in a known state.

dave
Post by Nellie Chen
Hi Stephen,
Thanks.
To clarify, the user is unable revert his change (and thus wants the pending changelist to be deleted) because he experienced a hard drive crash and the file is now out of sync with what he has in his workspace. So he would like to abandon his change before the crash altogether to avoid any confusion.
Perhaps it will be better to ask the user revert the change somehow in order to delete the pending changelist.
Nellie
-----Original Message-----
Sent: Wednesday, May 07, 2008 4:32 PM
To: Nellie Chen
Subject: Re: [p4] Deleting Pending Changelist with Opened Files
You can't delete a changelist that has opened files in it.
I'm not sure what you mean that the "change is too old" to revert the
files. There's nothing in Perforce that would cause this. Can you explain?
You could reopen the files in another changelist and then delete the one
in question, but I'm not sure what benefit that provides.
Steve
Post by Nellie Chen
Hi,
I would like to delete an old pending changelist for another user. However, there are opened files in that changelist. I cannot delete the client that has the opened files because the user is still using this client. I cannot revert the opened files in that client either because they are not on my machine, and the user is unable to revert the files either because the change is too old.
Is there a way to force delete this pending changelist, without doing a revert or deleting the client that has the opened files?
Thanks,
Nellie
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
--
Stephen Vance
www.vance.com
_______________________________________________
http://maillist.perforce.com/mailman/listinfo/perforce-user
Nittin chawala
2008-05-08 03:32:09 UTC
Permalink
Do following for each of the file in that CL :

1) p4 -H <hostname> -c <clientname in which files are open> revert -k <opened file name>
2) p4 change -d <change number>

-- --

Nellie Chen <***@autodesk.com> wrote:
Hi,

I would like to delete an old pending changelist for another user. However, there are opened files in that changelist. I cannot delete the client that has the opened files because the user is still using this client. I cannot revert the opened files in that client either because they are not on my machine, and the user is unable to revert the files either because the change is too old.

Is there a way to force delete this pending changelist, without doing a revert or deleting the client that has the opened files?

Thanks,
Nellie
_______________________________________________
perforce-user mailing list - perforce-***@perforce.com
http://maillist.perforce.com/mailman/listinfo/perforce-user



---------------------------------
Explore your hobbies and interests. Click here to begin.

Loading...