5' later an ideea poped in my mind :)
I took another look on the build folder and saw that actually it was
not updated, so I added another line of code to the build script to
make the update (thought the pull command was supposed to also do the
update)

    - the update attribute should allow it to make the update after
pull
                 <HgPull
                        Force="true"
                        Update="true"
                        LocalPath="$(MSBuildProjectDirectory)\$(WorkingFolder)" 
/>
  - new line that solved the issue
                <HgUpdate
                        Clean="true"
                        LocalPath="$(MSBuildProjectDirectory)\$(WorkingFolder)" 
/>

Too bad the msbuild task doesn't prints anything to the log....

florin

On Jun 23, 8:42 pm, florin <[email protected]> wrote:
> Hi All,
>
> I'm trying to setup a project under CCNet. The project is using
> mercurial as SC.
> Though I have used CCNET before, i'm quite new new mercurial.
> I'm having an issue with the detection of changes, each time the
> interval trigger is executed, it detects the last push as a change and
> though it triggeres a new build, which is not quite ok...
>
> In project config I have mercurial SC configured not no get sources
> (because I had an error due to merge errors on a get attempt...).
> In the msbuild script that is run I do a clean forced pull
> <HgPull
>                         Force="true"
>                         Update="true"
>                         
> LocalPath="$(MSBuildProjectDirectory)\$(WorkingFolder)" />
>
> to get the sources and then compile.
>
> Not sure how much is this a mercurial issue or it is related to the
> way the plugin is getting the sources.
>
> Using CCNET 1.5.7256.1 and mercurial 1.5.4.
>
> Thanks,
> florin

Reply via email to