PerforceDirectPlugin and move refactoring

To Richard:

Thanks very much for writing this plugin.

I have a question about the 1.0.0 plugin behavior when doing a move refactoring. (I can't see the p4 commands because the windows flash by too quickly.) When I move a class that's already in P4 to another package, the plugin seems to copy the file to the new location, do a 'p4 add' on the new file, then a 'p4 delete' on the old file. That's what seems to be happening based on what I see in my P4 GUI afterwards. Is that an accurate description of what's going on? If so, may I add a request to the PerforceDirectPlugin wishlist to have an option for doing moves in the following manner, in order to preserve the file history?

p4 integrate oldfilepath newfilepath
p4 delete oldfilepath

Thanks,
Kathryn

4 comments

Kathryn, what you ask is exactly what the plugin does.
If both files are under the same clientspec, it uses p4 integrate.
If they are either in different clientspecs, or one of the paths
is not under any clientspec, then it uses appropriate combination
of p4 add and p4 delete.
If you believe there is something wrong, let me know.
Also, you can turn on logging of the p4 commands and
watch them in the console (sent that to me if you have
an example where it doesn't do what is expected).

r.



"Kathryn Benedicto" <itnadmin@jetbrains.com> wrote in message
news:20939701.1053046722814.JavaMail.jrun@is.intellij.net...

To Richard:

>

Thanks very much for writing this plugin.

>

I have a question about the 1.0.0 plugin behavior when doing a move

refactoring. (I can't see the p4 commands because the windows flash by too
quickly.) When I move a class that's already in P4 to another package, the
plugin seems to copy the file to the new location, do a 'p4 add' on the new
file, then a 'p4 delete' on the old file. That's what seems to be happening
based on what I see in my P4 GUI afterwards. Is that an accurate
description of what's going on? If so, may I add a request to the
PerforceDirectPlugin wishlist to have an option for doing moves in the
following manner, in order to preserve the file history?
>

p4 integrate oldfilepath newfilepath
p4 delete oldfilepath

>

Thanks,
Kathryn



0

Thanks so much for your help. Both the old file location and the new file location are under the same p4 root for my client, so it could possibly be a plugin problem. I'll send you the log output, but I haven't figured out how to get it yet... I tried enabling "Show Perforce Commands" in my Project Properties. I do see the commands displayed in GUI dialog boxes, but those windows disappear before I can read them. I looked in the system/log/idea.log file, checked the "Run" window, and tried changing my idea.lax file to redirect stdout to a console window, but I didn't see p4 commands displayed in any of those places. Do you have any other suggestions?

0

Kathryn, I don't remember, someone had experimented with the lax file
to allow stdout to be redirected to a file.
I use the Win IDEA.BAT file with output going to the console.
There's where the commands are showing in the current implementation.
So just try to redirect IDEA's stdout somewhere.

r.

Kathryn Benedicto wrote (on 5/16/2003 14:23):

Thanks so much for your help. Both the old file location and the new file
location are under the same p4 root for my client, so it could possibly be
a plugin problem. I'll send you the log output, but I haven't figured out
how to get it yet... I tried enabling "Show Perforce Commands" in my
Project Properties. I do see the commands displayed in GUI dialog boxes,
but those windows disappear before I can read them. I looked in the
system/log/idea.log file, checked the "Run" window, and tried changing my
idea.lax file to redirect stdout to a console window, but I didn't see p4
commands displayed in any of those places. Do you have any other
suggestions?


0

Richard,

I was able to capture the p4 commands by changing idea.lax to redirect stdout to a file instead of the console, running the PerforceDirect tools, then closing IDEA. Looks like it's doing the right thing. Also, someone at work assures me that the changes I saw in the p4 gui are indeed consistent with the p4 integrate, edit, delete, etc. steps that take place behind the scenes. I'll keep playing with the plugin for the next several days and try to send you useful feedback if I have any. Thanks again for the help and sorry for any bother!

-Kathryn

0

Please sign in to leave a comment.