# Subversion Info always fails

**URL:** https://www.finalbuilder.com/forums/t/subversion-info-always-fails/916
**Category:** Discussion
**Created:** [July 30, 2008, 10:23am UTC](https://www.finalbuilder.com/forums/t/subversion-info-always-fails/916 "2008-07-30T10:23:37Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![pierrey](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/8e7dd6/32.png) [@pierrey](https://www.finalbuilder.com/forums/u/pierrey)
#### Post date: [July 30, 2008, 10:23am UTC](https://www.finalbuilder.com/forums/t/subversion-info-always-fails/916/1 "2008-07-30T10:23:37Z")

</div>

Hi,

I'm a new FinalBuilder user I'm currently evaluating before buy.

I'm trying to "Finalbuilderize" my build process, my code is stored in a Subversion Repository. At the very top of my FinalBuilder script, I want to get the revision number of my branch HEAD. So I use the task "Subversion Info"

Parameters: info --non-interactive --password [not suppressed !] --revision HEAD --username pierre&nbsp; svn://[repository]/[project]/branches/[branch]  
  
(Note that the password is not suppressed in the log.)

&nbsp;

...  
Révision : 588  
...

Subversion info failed with return code 0

Do you know what's happening ? Maybe the problem is that my Subversion returns localized information ?

Regards,

--  
Pierre Yager

---

<div class="post-metadata">

### Author: ![pierrey](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/8e7dd6/32.png) [@pierrey](https://www.finalbuilder.com/forums/u/pierrey)
#### Post date: [July 31, 2008, 10:11am UTC](https://www.finalbuilder.com/forums/t/subversion-info-always-fails/916/2 "2008-07-31T10:11:57Z")

</div>

Ok, I found what happens. It's due to subversion localization, the solution is straighforward : either delete the share/locale folder of your subversion installation, or define a LC\_MESSAGE variable in your FinalBuilder projet with the value "en\_US".

Hope this helps

--  
Pierre Yager

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [May 25, 2009, 10:48am UTC](https://www.finalbuilder.com/forums/t/subversion-info-always-fails/916/3 "2009-05-25T10:48:13Z")

</div>

Got almost the same problem. But mine lie in the fact that I have to set none-unicode applications to an asian locale, for all else we the en\_US set. The LC\_MESSAGE did unfortunately not work. I have worked around tis problem before in Perl. To me it seems tha parsing/regexp of the svn info output is going on the specific english field names. A slit combined with a regexp could instead enumerate over the entries, line-by-line, since the order of the fields do not change we know which is what.   
  
 Anyone else had this problem? Or is the solution to write our own svn info action?   
  
 //Charlie

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [July 19, 2010, 4:20am UTC](https://www.finalbuilder.com/forums/t/subversion-info-always-fails/916/4 "2010-07-19T04:20:32Z")

</div>

按照Pierre Yager的方法，在Project中添加了个变量之后重启电脑还是报出Return code 0 的错误，   
 不过发现在C:\Program Files\TortoiseSVN\Languages目录中除了en\_US，还有en\_GB把这en\_GB重命名掉重启电脑之后就解决了。。。

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [July 19, 2010, 5:17am UTC](https://www.finalbuilder.com/forums/t/subversion-info-always-fails/916/5 "2010-07-19T05:17:38Z")

</div>

Umm… ok… according to [translate.google.com](http://translate.google.com) (for the benifit of most users who don’t speak/read chinese)   
  
 “According to Pierre Yager’s method, added in the Project after the restart the computer or the variables quoted Return code 0 error   
 But found in C: \ Program Files \ TortoiseSVN \ Languages directory in addition to en\_US, there en\_GB en\_GB rename this out after restarting the computer solved. . .”
