# Accessing chaged files in repository

**URL:** https://www.finalbuilder.com/forums/t/accessing-chaged-files-in-repository/5379
**Category:** Discussion
**Created:** [July 28, 2015, 1:30am UTC](https://www.finalbuilder.com/forums/t/accessing-chaged-files-in-repository/5379 "2015-07-28T01:30:12Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![pierre.blidh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/c6cbf5/32.png) [@pierre.blidh](https://www.finalbuilder.com/forums/u/pierre.blidh)
#### Post date: [July 28, 2015, 1:30am UTC](https://www.finalbuilder.com/forums/t/accessing-chaged-files-in-repository/5379/1 "2015-07-28T01:30:12Z")

</div>

Hi VSoft,  
  
I have a repository containing, let us say, about 10 files. If I change one of them and make a commit I would like to know which file changed on the agent. I would like to do a couple of actios on them before starting other actions.  
How can I achieve this?  
Regards,  
Pierre

---

<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: [July 29, 2015, 8:58am UTC](https://www.finalbuilder.com/forums/t/accessing-chaged-files-in-repository/5379/2 "2015-07-29T08:58:06Z")

</div>

Hi Pierre,  
  
Unfortunately there is currently no way to do this in Continua. We only expose the list of changeset files for the template notifications.&nbsp;  
  
The next version 1.7 which will soon be released as beta will optionally write build details including changesets and files to an XML file before running a PowerShell, FinalBuilder, Execute Program or Execute DOS Command action. You could then write a script or program to iterate through these files.  
  
We have also talked about implementing a Iterator action in the future to allow you to loop through collections such as repositories, changesets and files, although I’m afraid its a bit low in priority at the moment.

---

<div class="post-metadata">

### Author: ![pierre.blidh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/c6cbf5/32.png) [@pierre.blidh](https://www.finalbuilder.com/forums/u/pierre.blidh)
#### Post date: [July 29, 2015, 4:45am UTC](https://www.finalbuilder.com/forums/t/accessing-chaged-files-in-repository/5379/3 "2015-07-29T04:45:53Z")

</div>

1. The reason why I’m asking is this: I need to start one build for each file in a directory so I tried&nbsp;adding them to a separate repository, one at a time. Like:  
 1.&nbsp;Add the first file to the repository  
 2.&nbsp;Hg add  
 3.&nbsp;Hg commit… (my build starts running)  
 4.&nbsp;Hg remove…  
 5.&nbsp;Hg commit… (my build starts running again :-(&nbsp; )  
 With this method I’m ending up triggering twice as many times as I need.   
 I tried to use the tags but I can't get Continus to not trigger the commits so I’m ending up getting trigger for the commits and for the added tags.  
 What I need is some kind of a “for each file in a directory -\> start a Continua build”-loop.
2. 
3. regards,
4. 
5. Pierre

---

<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: [July 30, 2015, 8:43am UTC](https://www.finalbuilder.com/forums/t/accessing-chaged-files-in-repository/5379/4 "2015-07-30T08:43:47Z")

</div>

Hi Pierre,  
  
The latest beta version 1.7 just released allows you to trigger only when a changeset contains specific change types (e.g. addition, deletion, modification). You can download it [here](https://www.finalbuilder.com/downloads/continuaci). Further information on new features [here](https://www.finalbuilder.com/resources/blogs/postid/732/introducing-continua-ci-version-17-beta)
