Jump to content

find where a file has moved to

  • Please log in to reply
1 reply to this topic

#1 JoeRiel



  • Members
  • PipPip
  • 19 posts

Posted 03 January 2019 - 06:59 PM

Is there a way to find out where a file has moved to?  It isn't where I thought I moved it to.  Doing

p4 revert foo
  foo has been moved, not reverted


Apparently I had started the move but never finished it.  Adding the file to where I wanted it seems to have worked.

#2 Sambwise


    Advanced Member

  • Members
  • PipPipPip
  • 819 posts

Posted 07 January 2019 - 10:39 AM

Run "p4 resolved" to see all pending integration (resolve) records.  You can filter it to a particular file by providing a path; if you provide a depot path it shows the "into" records pertaining to that file (which is what you want here, i.e. "what path did this file get moved into") and if you provide a local path it shows the "from" records pertaining to that file.

Another trick that's specific to moved files is to run "p4 fstat" on the file, which I believe will expose the "movedFile" field from the working table (which is present on both files involved in a move).

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users