SVN Branches with update

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

SVN Branches with update

pmendelson
I copied an old project that is keyed into my trunk into a new project that is keyed off a branch.

I also checked the update box to make my builds go faster.

When I check it out I get see the following on my console

Svn : Checking out a working copy from a repository :
co -r HEAD file:///path/to/project/trunk@HEAD /path/to/hudson/.hudson/jobs/to2008-concept/workspace/branchname --non-interactive
svn: '/path/to/hudson/.hudson/jobs/to2008-concept/workspace/branchname' is already a working copy for a different URL

It seems to me that hudson should instead gone after
co -r HEAD file:///path/to/project/branches/branchname@HEAD

am I configuring wrong?
Reply | Threaded
Open this post in threaded view
|

Re: SVN Branches with update

Kohsuke Kawaguchi
Administrator
pmendelson wrote:

> I copied an old project that is keyed into my trunk into a new project that
> is keyed off a branch.
>
> I also checked the update box to make my builds go faster.
>
> When I check it out I get see the following on my console
>
> Svn : Checking out a working copy from a repository :
> co -r HEAD file:///path/to/project/trunk@HEAD
> /path/to/hudson/.hudson/jobs/to2008-concept/workspace/branchname
> --non-interactive
> svn: '/path/to/hudson/.hudson/jobs/to2008-concept/workspace/branchname' is
> already a working copy for a different URL
>
> It seems to me that hudson should instead gone after
> co -r HEAD file:///path/to/project/branches/branchname@HEAD
>
> am I configuring wrong?
Can you post your project's config.xml? You'll find it in
/path/to/hudson/.hudson/jobs/to2008-concept/config.xml


--
Kohsuke Kawaguchi
Sun Microsystems                   [hidden email]

smime.p7s (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: SVN Branches with update

pmendelson
<?xml version='1.0' encoding='UTF-8'?>
<project>
  <builders class="vector">
    <hudson.tasks.Ant>
      <targets>-Djavadoc.dir=${TO_ROOT}/../javadoc
-Dship.dir=../ship
-Dartifact.dir=../artifacts
-f
build_hudson.xml
hudsoninfo
prepare</targets>
      <antName>apache-ant-1.7.0</antName>
    </hudson.tasks.Ant>
  </builders>
  <publishers class="vector">
    <hudson.tasks.ArtifactArchiver>
      <artifacts>ship/*.jar ship/*.zip  ship/**/emailable-report.html trunk/version.properties **/20*</artifacts>
      <latestOnly>false</latestOnly>
    </hudson.tasks.ArtifactArchiver>
    <hudson.tasks.Fingerprinter>
      <targets></targets>
      <recordBuildArtifacts>true</recordBuildArtifacts>
    </hudson.tasks.Fingerprinter>
  </publishers>
  <buildWrappers class="vector"/>
  <scm class="hudson.scm.SubversionSCM">
    <locations>
      <hudson.scm.SubversionSCM_-ModuleLocation>
        <remote>file:///to/repository/trueoutcomes/branches/y2008concept1</remote>
        <local>trunk</local>
      </hudson.scm.SubversionSCM_-ModuleLocation>
    </locations>
    <useUpdate>true</useUpdate>
  </scm>
  <canRoam>true</canRoam>
  <disabled>false</disabled>
  <jdk>(Default)</jdk>
  <triggers class="vector">
    <hudson.triggers.SCMTrigger>
      <spec>02 03,12,16 * * *</spec>
    </hudson.triggers.SCMTrigger>
  </triggers>
  <logRotator>
    <daysToKeep>-1</daysToKeep>
    <numToKeep>3</numToKeep>
  </logRotator>
  <keepDependencies>false</keepDependencies>
  <properties/>
  <description>Basic TrueOutcomes application (experimental version)</description>
  <actions class="vector"/>
</project>

Note I have used various names for local directory and problem is the same

kohsuke wrote
pmendelson wrote:
> I copied an old project that is keyed into my trunk into a new project that
> is keyed off a branch.
>
> I also checked the update box to make my builds go faster.
>
> When I check it out I get see the following on my console
>
> Svn : Checking out a working copy from a repository :
> co -r HEAD file:///path/to/project/trunk@HEAD
> /path/to/hudson/.hudson/jobs/to2008-concept/workspace/branchname
> --non-interactive
> svn: '/path/to/hudson/.hudson/jobs/to2008-concept/workspace/branchname' is
> already a working copy for a different URL
>
> It seems to me that hudson should instead gone after
> co -r HEAD file:///path/to/project/branches/branchname@HEAD
>
> am I configuring wrong?

Can you post your project's config.xml? You'll find it in
/path/to/hudson/.hudson/jobs/to2008-concept/config.xml


--
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi@sun.com

 
Reply | Threaded
Open this post in threaded view
|

Re: SVN Branches with update

Kohsuke Kawaguchi
Administrator
This is indeed bit puzzling because the SCM configuration doesn't have
any string like "trunk" in it. So I don't know how SubversionSCM could
have came up with "co .../trunk" command.

Could you file this as an issue? I guess I should see what happens if
I switch from branch to trunk.

2007/7/25, pmendelson <[hidden email]>:

>
> <?xml version='1.0' encoding='UTF-8'?>
> <project>
>   <builders class="vector">
>     <hudson.tasks.Ant>
>       <targets>-Djavadoc.dir=${TO_ROOT}/../javadoc&#x0D;
> -Dship.dir=../ship&#x0D;
> -Dartifact.dir=../artifacts&#x0D;
> -f&#x0D;
> build_hudson.xml&#x0D;
> hudsoninfo&#x0D;
> prepare</targets>
>       <antName>apache-ant-1.7.0</antName>
>     </hudson.tasks.Ant>
>   </builders>
>   <publishers class="vector">
>     <hudson.tasks.ArtifactArchiver>
>       <artifacts>ship/*.jar ship/*.zip  ship/**/emailable-report.html
> trunk/version.properties **/20*</artifacts>
>       <latestOnly>false</latestOnly>
>     </hudson.tasks.ArtifactArchiver>
>     <hudson.tasks.Fingerprinter>
>       <targets></targets>
>       <recordBuildArtifacts>true</recordBuildArtifacts>
>     </hudson.tasks.Fingerprinter>
>   </publishers>
>   <buildWrappers class="vector"/>
>   <scm class="hudson.scm.SubversionSCM">
>     <locations>
>       <hudson.scm.SubversionSCM_-ModuleLocation>
>
> <remote>file:///to/repository/trueoutcomes/branches/y2008concept1</remote>
>         <local>trunk</local>
>       </hudson.scm.SubversionSCM_-ModuleLocation>
>     </locations>
>     <useUpdate>true</useUpdate>
>   </scm>
>   <canRoam>true</canRoam>
>   <disabled>false</disabled>
>   <jdk>(Default)</jdk>
>   <triggers class="vector">
>     <hudson.triggers.SCMTrigger>
>       <spec>02 03,12,16 * * *</spec>
>     </hudson.triggers.SCMTrigger>
>   </triggers>
>   <logRotator>
>     <daysToKeep>-1</daysToKeep>
>     <numToKeep>3</numToKeep>
>   </logRotator>
>   <keepDependencies>false</keepDependencies>
>   <properties/>
>   <description>Basic TrueOutcomes application (experimental
> version)</description>
>   <actions class="vector"/>
> </project>
>
> Note I have used various names for local directory and problem is the same
>
>
> kohsuke wrote:
> >
> > pmendelson wrote:
> >> I copied an old project that is keyed into my trunk into a new project
> >> that
> >> is keyed off a branch.
> >>
> >> I also checked the update box to make my builds go faster.
> >>
> >> When I check it out I get see the following on my console
> >>
> >> Svn : Checking out a working copy from a repository :
> >> co -r HEAD file:///path/to/project/trunk@HEAD
> >> /path/to/hudson/.hudson/jobs/to2008-concept/workspace/branchname
> >> --non-interactive
> >> svn: '/path/to/hudson/.hudson/jobs/to2008-concept/workspace/branchname'
> >> is
> >> already a working copy for a different URL
> >>
> >> It seems to me that hudson should instead gone after
> >> co -r HEAD file:///path/to/project/branches/branchname@HEAD
> >>
> >> am I configuring wrong?
> >
> > Can you post your project's config.xml? You'll find it in
> > /path/to/hudson/.hudson/jobs/to2008-concept/config.xml
> >
> >
> > --
> > Kohsuke Kawaguchi
> > Sun Microsystems                   [hidden email]
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/SVN-Branches-with-update-tf4123859.html#a11781350
> Sent from the Hudson users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>


--
Kohsuke Kawaguchi

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]