# Subversion Checkout/Update etc set variable

**URL:** https://www.finalbuilder.com/forums/t/subversion-checkout-update-etc-set-variable/3983
**Category:** Feature Requests
**Created:** [October 21, 2008, 8:34am UTC](https://www.finalbuilder.com/forums/t/subversion-checkout-update-etc-set-variable/3983 "2008-10-21T08:34:38Z")
**Posts on this page:** 3
**Page:** 1

<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: [October 21, 2008, 8:34am UTC](https://www.finalbuilder.com/forums/t/subversion-checkout-update-etc-set-variable/3983/1 "2008-10-21T08:34:38Z")

</div>

Most of the SVN commands and most of the SVN C/C++/Ruby/Perl/Python interface routines finish with a revision number. I realize there's Subversion Info but it'd be really nice if, upon completion, you could assign the revision number returned by an operation into a variable. (I've not found my feet enough yet to try and do this myself in action studio :)

- Oliver

---

<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: [October 22, 2008, 5:38am UTC](https://www.finalbuilder.com/forums/t/subversion-checkout-update-etc-set-variable/3983/2 "2008-10-22T05:38:01Z")

</div>

I agree it is something we should add, I will look into it. In the mean time you can use an Output Monitor on the actions to extract the value into a variable. Open the action properties dialog, switch to the Runtime tab, click on the … button for Output Monitors, then click on “Add New Output Monitor”,   
  
 Search string : Checked out revision (\d\*).   
 Check Regular Expression   
 Behaviour : Save first match to variable   
 Variable : set it to your revision variable.   
  
 You will need to update the search string to match the action, I tested this on the checkout action but it should work the in the same manner.   
  
 HTH

---

<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: [October 23, 2008, 10:02am UTC](https://www.finalbuilder.com/forums/t/subversion-checkout-update-etc-set-variable/3983/3 "2008-10-23T10:02:03Z")

</div>

That was the solution I'd come up with, it was just surprising it wasn't already codified. Please take that as the high praise intended :)
