# Building All Revisions

**URL:** https://www.finalbuilder.com/forums/t/building-all-revisions/520
**Category:** Discussion
**Created:** [July 10, 2007, 1:55am UTC](https://www.finalbuilder.com/forums/t/building-all-revisions/520 "2007-07-10T01:55:53Z")
**Posts on this page:** 4
**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: [July 10, 2007, 1:55am UTC](https://www.finalbuilder.com/forums/t/building-all-revisions/520/1 "2007-07-10T01:55:53Z")

</div>

I have Perforce up and running the General flow of my build is:

&nbsp;

WhileLoop

-Perforce Generic (Gets LastPerforceRevision)

-IF( Prev Perforce Revision \<\> Last Perforce Revision)

--SetVariable Prev Perforce Revision to Last Perforce Revision

--Perforce Sync (to revision)

--

--

&nbsp;

&nbsp;

So this is all well an good except if I have multiple revisions in between the build. So I was wondering the best way to store the last perforce revision and then simply increment the builds forward until -IF( Prev Perforce Revision \<\> Last Perforce Revision).

&nbsp;

Any ideas?

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [July 10, 2007, 3:30am UTC](https://www.finalbuilder.com/forums/t/building-all-revisions/520/2 "2007-07-10T03:30:10Z")

</div>

Hi Ronan,   
  
 Is it possible to change the IF statement to PrevPerforceRevision \< LastPerforceRevision ? ie. do you need to build all revisions between prev and last, or is a build for the last revision good enough?   
  
 .t8

---

<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 10, 2007, 5:26am UTC](https://www.finalbuilder.com/forums/t/building-all-revisions/520/3 "2007-07-10T05:26:40Z")

</div>

I can change whatever needs to be. What I would like is a build per revision done. So we can easily test what fixes broke what and when. As it stands with our unit testing etc, our builds are taking around 5 - 10 minutes while at times we could make 3 or 4 checkins during this time. Thus when we loop around we would miss those and just grab the latest.

So I am free to change everything that is required, just once we capture all builds.

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [July 10, 2007, 5:31am UTC](https://www.finalbuilder.com/forums/t/building-all-revisions/520/4 "2007-07-10T05:31:08Z")

</div>

ok - I see what you mean now 🙂   
  
 You could use the For Loop action for this. ie. it would loop from (PrevPerforceRevision + 1) to LastPerforceRevision and step by 1 each time. You’ll have to use an extra variable to hold the current revision to build.   
  
 hth.
