Re: [p4] Mark Missing Files as Delete?

Fluppi393 <[email protected]> Wed, 9 May 2018 15:40:01 -0700
Newsgroups gmane.comp.version-control.perforce
Message-ID <[email protected]>
Posted on behalf of forum user 'Fluppi393'.



[https://forums.perforce.com/index.php?app=forums&module=forums&section=findpost&pid=23418]
P4Jen, on 2018/05/08 11:01:13 UTC, said:
>    Hi,
>   
>   It would be good to work out whether this is a P4V issue or not.
>   
>   Which version of P4V are you using?
>   
>   Also, does 'p4 reconcile' from the command-line mark the files as open for delete, once you have removed
>   them from the workspace?
>     
I am running version "Helix Visual Client/NTX64/2017.3/1592764".
'p4 reconcile' does mark files as open for delete, however if these
files have been opened for edit before deleting them reconcile fails and it says
there are no files to reconcile.



[https://forums.perforce.com/index.php?app=forums&module=forums&section=findpost&pid=23419]
Sambwise, on 2018/05/08 16:01:44 UTC, said:
>    I don't think the inverse of this ever got implemented:
>   
>     #936955 (Bug #75207) ** 'p4 reconcile' will now detect files that are open for delete but are physically present on the client, and reopen them for edit.  
>   
>   so to open a file for delete after it's been open you'll need to revert it first.  I'd just do this once ready to submit:
>   
>    p4 revert -k //... p4 reconcile //...  
>   Not the most elegant solution but it's easier than writing a script to specifically reopen the deleted files.
>     
It's a pity that the inverse function is not implemented, it would seem
logical wouldn't it :\
However p4 revert -k; p4 reconcile seem like they might be the solution to my
problem. The documentation says that the "-k" option keeps workspace
files and only alters the changelist. If that also stops it from restoring
deleted files that could be my solution.

I will see if that works in the future, thanks for the input so far guys!



--
Please click here to see the post in its original format:
  http://forums.perforce.com/index.php?/topic/5718-mark-missing-files-as-delete
_______________________________________________
perforce-user mailing list  -  [email protected]
http://maillist.perforce.com/mailman/listinfo/perforce-user