Menu

#349 %project replacement is executed only for the first occurence in script/command

1.8.1
Fixed
nobody
None
Medium
Defect
2012-03-25
2012-03-13
Anonymous
No

Originally created by: stefano....@gmail.com
Originally owned by: tortoisesvn

What steps will reproduce the problem?
1. Insert a script to be executed likethe following:
d:\utilities\perl\commitmonitor.pl" -c "d:\utilities\CommitMonitor_portable\%project.cfg" -r %revision -u %url -p "%project"
2.
3.

What is the expected output?
The command line is formatted like the following, eg. for project called MyProject, [r253], url https://myurl.com/myproject:

d:\utilities\perl\commitmonitor.pl" -c "d:\utilities\CommitMonitor_portable\MyProject.cfg" -r 253 -u https://myurl.com/myproject -p "MyProject"

What do you see instead?
The following cmmand line is formatted:
d:\utilities\perl\commitmonitor.pl" -c "d:\utilities\CommitMonitor_portable\MyProject.cfg" -r 253 -u https://myurl.com/myproject -p "%project"

What version of the product are you using? On what operating system?
1.8.0.22 on Windows XP

Please provide any additional information below.

Any variable behaves like that (%url, %revision, too).
I guess the problem is in HiddenWindow.cpp in wstring function replace:

commandline.replace(it_begin, it_end, srev);
Does "replace" function only replace the first occurence?

Discussion

  • Anonymous

    Anonymous - 2012-03-25

    Originally posted by: tortoisesvn

    (No comment was entered for this change.)

    Labels: Milestone-1.8.1
    Owner: tortoisesvn
    Status: Started

     
  • Anonymous

    Anonymous - 2012-03-25

    Originally posted by: tortoisesvn

    This issue was closed by revision [r635].

    Status: Fixed

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.