[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Renaming of files

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Tue, 23 Jul 2013 20:44:00 +0200

On 22.07.2013 15:08, Oliver Kopp wrote:
> Hi,
>
> I noticed that the renaming of files changed in the last version. The
> new renaming does not fit my requirements.
>
> If
> prefix-XXX-suffix.extension
> is renamed to
> prefix-YYY-suffix.extension,
> the suggestion for renaming should "just" replace all "XXX" in "YYY"
> in all files.
>
> What the current algorithm seems to be doing is to do a fuzzy search
> somehow and adding words to the filename, where it is undesired...
>
> If I rename "prefix1-xxx-suffix1.pdf" to "prefix1-yyy-suffix1.pdf",
> TortoiseSVN suggests me to rename "prefix1-xxx-sufuffix2.xlsx" to
> "prefix1-yyy-suffix1.0-xxx-suffix2.xlsx". Especially, the old "xxx" is
> still there.
>
> Concrete example:
> TOSCA-v1.0-csd08-attributes.xlsx -> TOSCA-v1.0-cos01-attributes.xlsx
> leads to the suggestion
>
> TOSCA-v1.0-csd08-class-diagram.pdf to
> TOSCA-v1.0-cos01-attributes.0-csd08-class-diagram.pdf.
> I expected the suggestion
> TOSCA-v1.0-cos01-class-diagram.pdf.
>
> TOSCA-v1.0-csd08.doc -> TOSCA-v1.0-cos01-attributes.0-csd08.doc
> is also suggested, but I expected
> TOSCA-v1.0-cos01.doc

your files have a dot in the name, in that situation the
renaming-detection doesn't work properly.
Because of the dot in 'v1.0', the part after the dot is treated as a
file extension and only the part up to the dot is considered as the
filename. And only files that have the same filename but a different
extension are considered as suggestions.

> Is it possible to do the renaming suggestion based on a diff?
> E.g., the user deleted letters a,b,c on positions 4,5,6 and inserted d,e,f?

that wouldn't work for renaming e.g.:
ConfigFrm.Designer.cs
ConfigFrm.cs
ConfigFrm.resx

Stefan

-- 
        ___
   oo  // \\      "De Chelonian Mobile"
  (_,\/ \_/ \     TortoiseSVN
    \ \_/_\_/>    The coolest interface to (Sub)version control
    /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3061117
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2013-07-23 20:44:11 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.