# Queue options: revision to vairable

**URL:** <https://www.finalbuilder.com/forums/t/queue-options-revision-to-vairable/6884>\
**Category:** Discussion\
**Created:** [October 16, 2020, 12:21pm UTC](https://www.finalbuilder.com/forums/t/queue-options-revision-to-vairable/6884 "2020-10-16T12:21:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jerzy](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/82dd89/32.png) [@Jerzy](https://www.finalbuilder.com/forums/u/Jerzy)\
**Post date:** [October 16, 2020, 12:21pm UTC](https://www.finalbuilder.com/forums/t/queue-options-revision-to-vairable/6884/1 "2020-10-16T12:21:38Z")

</div>

Hello,

in Queue Options, is it possible (and how) to:

1. set variable to revision selected in a repository (in " Repository Branch / Tag / Revision" section)?
2. have _revision_ selected as default instead of _branch_ in " Repository Branch / Tag / Revision" section?

Selecting changeset from repository is necessary to have log connected to correct changeset, and as of now our FinalBuilder projects needs that changeset as a parameter. But filling it twice is obvious redundancy.

---

<div class="post-metadata">

**Author:** ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)\
**Post date:** [October 16, 2020, 12:44pm UTC](https://www.finalbuilder.com/forums/t/queue-options-revision-to-vairable/6884/2 "2020-10-16T12:44:54Z")

</div>

Hi @Jerzy,

> [@Jerzy](#):
>
> set variable to revision selected in a repository (in " Repository Branch / Tag / Revision" section)?

You can use the expression `$Source.RepoName.BuiltChangeset.RepositoryChangeId$` to get the revision or commit hash of the changeset used for the build. See [Changeset Object](https://wiki.finalbuilder.com/display/continua/Changeset+Object) for further changeset expressions.

This can be passed as a variable to your FinalBuilder project via the `Variables` field on the `Variables` tab of the [FinalBuilder action](https://wiki.finalbuilder.com/display/continua/FinalBuilder+Action).

e.g. `revision=$Source.RepoName.BuiltChangeset.RepositoryChangeId$`

> [@Jerzy](#):
>
> have _revision_ selected as default instead of _branch_ in " Repository Branch / Tag / Revision" section?

You cannot currently set a default selection on this page, but we will consider adding an option or property for this in the future.

Note that you can open the `Queue Options` dialog, with a specific revision selected, by clicking on the arrow to the left of the changeset in the `Changes` tab of the configuration view.

---

<div class="post-metadata">

**Author:** ![Jerzy](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/82dd89/32.png) [@Jerzy](https://www.finalbuilder.com/forums/u/Jerzy)\
**Post date:** [October 19, 2020, 9:28pm UTC](https://www.finalbuilder.com/forums/t/queue-options-revision-to-vairable/6884/3 "2020-10-19T21:28:35Z")

</div>

Thank you, this wiki page is exactly what I faild to find 🙂

As for the arrow tip: it is **really** useful one, thank you a LOT!
