Can the Perforce integration be made to use the 'move' command when renaming files?

Since version 2009.1 Perforce supports a "move" command for when you move or rename files http://kb.perforce.com/article/7/renaming-files.

When renaming a file in IntellIJ, the Perforce change list shows the old filename as a 'delete' and the new filename as an 'add'.

When making the same rename command in more recent versions of the Perforce GUI, it represents the change to old file as a 'move/delete' and the change to the new file as 'move/add'.

Can the Perforce Integration in IntelliJ be configured to use the 'move' command in Perforce, rather than delete/add?

Using 'move' instead allows you to see the rename change when viewing the new file's history, as well as the changes to the old file.

3 comments
Comment actions Permalink

Hello Matt,

In fact the Perforce integration should preserve the history when moving
for all versions of Perforce server. Although the 'move' command isn't available
with earlier versions, the plugin performs an 'integrate' command to create
a copy of the file at the new location (with preserving history) before deleting
the file at the old location.

The specific commands used by the plugin are hard-coded in the plugin implementation
and are not configurable through the UI.

Since version 2009.1 Perforce supports a "move" command for when you
move or rename files http://kb.perforce.com/article/7/renaming-files.

When renaming a file in IntellIJ, the Perforce change list shows the
old filename as a 'delete' and the new filename as an 'add'.

When making the same rename command in more recent versions of the
Perforce GUI, it represents the change to old file as a 'move/delete'
and the change to the new file as 'move/add'.

Can the Perforce Integration in IntelliJ be configured to use the
'move' command in Perforce, rather than delete/add?

Using 'move' instead allows you to see the rename change when viewing
the new file's history, as well as the changes to the old file.


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

Hi Dmitry, thanks for the quick answer. I assume the 'integrate' only happens if the changelist is actually submitted through IntelliJ (as opposed to using p4 manually on the command line or p4v)?

0
Comment actions Permalink

Hello Matt,

This shouldn't matter. The 'integrate' command is performed at the moment
of the move, not of the commit.

Hi Dmitry, thanks for the quick answer. I assume the 'integrate' only
happens if the changelist is actually submitted through IntelliJ (as
opposed to using p4 manually on the command line or p4v)?


--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0

Please sign in to leave a comment.