Can I change the Accurev Eclipse Team Synchroniz -diff against latest kept?

charpley's picture
charpley asked on May 2, 2012 - 8:50am | Replies (3).

As a long time user of Eclipse+SVN, we recently started using AccuRev as SCM tool. Prior to any commits (keeps) I generally switch to the Team Synchronizing perspective to check my changes. From there I then perform a keep operation.

Whilst this works fine for the first keep (from backed), any subsequents edits are differenced against the backed version, not latest kept.

I don't prompt that often, but do lots of keeps. Is it possible to change the behaviour of the Team Synchronizer?

Thanks,
Chris

Using version 2012.1.0 of Eclipse Plug-in for AccuRev, on Eclipse 3.7.1

3 Answers

jtalbott's picture
jtalbott replied on May 2, 2012 - 3:37pm.

Hi Chris,

Are you using something like "Open in Compare Editor" to see the diff from the Team Synchronization view? You should have AccuRev commands direct on the right-click menu from that view, included there would be "Diff Against -> Most Recent Version". That will take your local modifications and compare them against your latest Keep version.

Remember though that Most Recent Version is going to be the latest Keep. So if you Keep the file and then Diff against Most Recent, it will show no changes. If you want to diff against previous Keeps in the workspace when there are multiple, the easiest way is to open the Version Browser (requires WebUI to be enabled) and then you can diff any two versions of the file that have ever existed.

Hope this helps...
~James

charpley's picture
charpley replied on May 3, 2012 - 7:08am.

Hi James, thanks for the reponse.

Yes, I'm using the 'Open in Compare Editor' which offers me the ability to review my changes and backout changes etc. before commit (keep).

Thanks for the tip, I hadn't noticed you could access the AccuRev commands from that view (generally just double click in syncronize window and file defaults to opening in compare editor).

Is it possible for these AccuRev commands to open in the (Eclipse) compare editor instead of the default AccuRev compare window? That would be my ideal :)

Thanks,
Chris

jtalbott's picture
jtalbott replied on May 3, 2012 - 11:14am.

Yep, you can go to Eclipse preferences, an navigate to Team -> AccuRev. From there, you can select the dropdown for the diff and merge tools and choose Eclipse instead of AccuRev...

You also might notice that you have a Synchronization tab available if you open up the AccuRev perspective, it should behave much the same way as your Synchronization perspective.

Cheers,
~James

CMCrossroads is a TechWell community.

Through conferences, training, consulting, and online resources, TechWell helps you develop and deliver great software every day.