Re: [p4] Best way to revert an opened change without reverting changes in workspace?

Marc Lewert <[email protected]>
Newsgroups gmane.comp.version-control.perforce
Message-ID <[email protected]>
Take a look at the "-k" option in p4 revert.

That is likely to do what you need.

     marc

On 08/07/2017 03:45 PM, mcru wrote:
> Posted on behalf of forum user 'mcru'.
>
> What is the best way to revert an opened change without reverting
> changes in the
> workspace?
>
> Example...
>
> I modify two files, fileA.txt and fileB.txt. I run p4 rec and both
> files are
> opened for edit. Now, I decide that I only want to commit changes to
> fileB.txt,
> but I don't want to run p4 revert on fileA.txt because I don't want to
> lose my changes on it. How do I revert fileA.txt to remove it from my
> list of
> open files without losing my local changes?
>
> In this simple example I know you could just p4 submit and pass the
> file name,
> or modify the changelist specification, but imagine you had a good
> number of
> files opened. How would you do this?
>
> Thanks!
>
>
>
> --
> Please click here to see the post in its original format:
>  http://forums.perforce.com/index.php?/topic/5436-best-way-to-revert-an-opened-change-without-reverting-changes-in-workspace
>
> _______________________________________________
> perforce-user mailing list  -  [email protected]
> http://maillist.perforce.com/mailman/listinfo/perforce-user

--
Marc Lewert                         Going Postal: TiVo Inc.
Senior Software Production Engineer               2160 Gold St.
Email: marc.lewert at tivo.com                    San Jose, CA 95002
Phone: 408-519-9486                               Main Phone: 408-519-9100


________________________________

This email and any attachments may contain confidential and privileged material for the sole use of the intended recipient. Any review, copying, or distribution of this email (or any attachments) by others is prohibited. If you are not the intended recipient, please contact the sender immediately and permanently delete this email and any attachments. No employee or agent of TiVo Inc. is authorized to conclude any binding agreement on behalf of TiVo Inc. by email. Binding agreements with TiVo Inc. may only be made by a signed written agreement.
_______________________________________________
perforce-user mailing list  -  [email protected]
http://maillist.perforce.com/mailman/listinfo/perforce-user
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.