Jump to content


p4 undo returning can't purge (already opened on this client)


  • Please log in to reply
1 reply to this topic

#1 henry.sia

henry.sia

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 25 February 2020 - 11:14 PM

Hello, attached is the snippet of the history of my branch.
I'm trying to roll back to a last known good revision (@705063), so I figured I want to do

Quote

p4 undo //depot/branches/feature_branchA/...@705183,@now
However, it's giving me these errors. Can someone help me understand what's going on? Thank you.
$ p4 undo //depot/branches/feature_branchA/...@705183,@now
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)
- can't purge (already opened on this client)

Attached Thumbnails

  • Screenshot from 2020-02-25 15-11-27.png


#2 Sambwise

Sambwise

    Advanced Member

  • Members
  • PipPipPip
  • 1037 posts

Posted 26 February 2020 - 05:04 PM

Looks like something's broken.  The error suggests that it's trying to open the file for "purge", which should never be correct -- also, those errors should have filenames in them.  I did a quick test with "purged" revs since that seems like the most likely way you might be able to trick undo into opening a file for purge, but on a 2016.2 server (what does "p4 info" show your server version is?) it does the right thing (or at least the least bad thing under the circumstances, which is to open it for delete):

C:\Perforce\test\undo>p4 filelog tempobj
//stream/main/undo/tempobj
... #3 change 141 edit on 2020/02/26 by Samwise@Samwise-dvcs-1509687817 (text+S) 'foo'
... #2 change 140 purge on 2020/02/26 by Samwise@Samwise-dvcs-1509687817 (text+S) 'foo'
... #1 change 139 purge on 2020/02/26 by Samwise@Samwise-dvcs-1509687817 (text+S) 'foo'


C:\Perforce\test\undo>p4 undo tempobj#2,3
//stream/main/undo/tempobj#3 - opened for delete

If the file is already open for edit, it errors (as I'd expect, since you can't convert an open file from edit to delete) but the error message is formatted correctly:


C:\Perforce\test\undo>p4 edit tempobj
//stream/main/undo/tempobj#3 - opened for edit

C:\Perforce\test\undo>p4 undo tempobj#2,3
//stream/main/undo/tempobj - can't delete (already opened on this client)

If you could share the output of:

p4 files -a //depot/branches/feature_branchA/...@705183,@now
p4 files //depot/branches/feature_branchA/...@705182
p4 opened

that might provide some clues as to what exactly it's trying to undo and why it might be having problems.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users