plasticscm

New and returning users may sign in

Sign in
prestine
(thinking…)
Password icon
Sign in with: Facebook Google
Forgot password?
Create a password
Signed in as (Sign out)
Close
Close
  • Sign in
  • Sign up
← General

I suggest you ...

Feedback

General

Categories

  • CATEGORIES
  • All ideas
  • My feedback

JUMP TO ANOTHER FORUM

(thinking…)
  • Searching…

    No results.

    Clear search results
    • General 390 ideas
    • Git bisync 14 ideas
    • semanticmerge 119 ideas
    • WebUI 10 ideas
  • plasticscm

Search matches: too high minimum similarity level

Sometimes when you modify a file and then rename it, Plastic SCM is unable to match the original file with the renamed one. In that case you can use the ‘Search matches’ tool to select the file that matches the original one. However, It is not always possible, because the minimum similarity level that you can set when searching is 50%.

Imagine you add a comment to a small file that contains only a definition of an enumerable and then rename the file. Because it is small, the comment becomes a major part of the file and the similarity to the original file is less than 50%. To find a match for the original file, you have to undo your local changes and only then is Plastic SCM able to find the matching file. It’s too cumbersome.

I noticed once that I when I enclosed a VB.NET class in a namespace (so I added a line of code before the class definition and after it) and renamed its file, Plastic SCM could not find a match for the renamed file as well. It seemed strange, because the file contained several hundred lines of code and only two of them were changed. I wondered what was wrong, but then I realized that putting the class in a namespace caused the class definition to be indented. So each line of code was modified in fact.

I think the minimum value of 50% for the similarity level track bar is not a good idea. It will be really helpful if you changed the minimum value to 0% or add a possibility to select any file from the workspace when the matching algorithm fails to find a proper file.

28 votes
Vote
Sign in
prestine
(thinking…)
Password icon
Sign in with: Facebook Google
Forgot password?
Create a password
Signed in as (Sign out)
Close
Close
You have left! (?) (thinking…)
Mariusz Schimke shared this idea  ·  November 19, 2013  ·  Flag idea as inappropriate…  ·  Delete…  ·  Admin →
completed  ·  AdminCodice Software (CEO / Founder, plasticscm) responded  ·  May 21, 2014

Hello,

we have changed the Search Matches form to remove the minimum similarity level. Moreover, we have changed the matching algorithm so that changes in indentation are not taken into account.

These new features can be found since version 5.0.44.566 of PlasticSCM.

Show previous admin responses (1)
planned  ·  AdminCodice Software (CEO / Founder, plasticscm) responded  ·  November 22, 2013
Tweet

4 comments

  • Remove
Attach a File
Sign in
prestine
(thinking…)
Password icon
Sign in with: Facebook Google
Forgot password?
Create a password
Signed in as (Sign out)
Close
Close
Submitting...
An error occurred while saving the comment
  • Mariusz Schimke commented  ·  May 21, 2014 23:32  ·  Flag as inappropriate  ·  Edit…  ·  Delete…

    What a coincidence :). I had no idea you had already done that the day before. Thanks a lot!

    Submitting...
  • Anuar S. commented  ·  May 21, 2014 10:02  ·  Flag as inappropriate  ·  Edit…  ·  Delete…

    Hello Mario,

    As you requested, we have changed the Search Matches form to remove the minimum similarity level. Moreover, we have changed the matching algorithm so that changes in indentation are not taken into account.

    These new features can be found since version 5.0.44.566 of PlasticSCM.

    Submitting...
  • Mariusz Schimke commented  ·  May 21, 2014 02:36  ·  Flag as inappropriate  ·  Edit…  ·  Delete…

    Hello there. Would you be so kind to give the task a higher priority, please? The issue is really a pain in the neck.

    Submitting...
  • Borja commented  ·  November 21, 2013 23:36  ·  Flag as inappropriate  ·  Edit…  ·  Delete…

    Yes, the search matches should allow any similarity value. It’s a good idea.

    In fact, it was already planned because we have suffered the same annoying issue with small files. When the new functionality will be ready, we will publish it here too.

    Submitting...
plasticscm
plasticscm Terms of Service Powered By UserVoice

Your password has been reset

We have made changes to increase our security and have reset your password.

We've just sent you an email to . Click the link to create a password, then come back here and sign in.