Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Operation move disabled on this server

📅 2018-Oct-09 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ move, p4 ⬩ 📚 Archive

Problem

I tried to move or rename a file using the p4 move command. The p4 server responded with this error message:

Operation 'move' disabled on this server

Solution

Since the move operation has been disabled by admins on this server, we need to use two operations to simulate a move.

One way to do this is by integrating the old to the new and then deleting the old:

$ p4 integrate old.txt new.txt
$ p4 delete old.txt

Another less recommended way is to copy the old to the new and then deleting the old. In this example, we do that on entire directories:

$ p4 copy old/... new/...
$ p4 delete old/...

© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘 @codeyarns@hachyderm.io📧