Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVNANT add with fileset fails with 'svn: '<filename>' is already under version control' [Tigris #1426] #11

Open
markphip opened this issue Sep 15, 2016 · 0 comments
Labels

Comments

@markphip
Copy link
Contributor

Description

I am using the development build now since I wanted to use the conflict 
resolution recently built and I experience a problem since then.

Probably I am making a mistake or something, but after a day of SVNANT code 
analysis I couldn't find the reason of this behaviour.

The problem arises when I try to add all code files in a specific directory 
(also containing sub directories) as follows:

  <target name="svn-test" depends="prop.init">
    <svn>
      <add force="true">
        <fileset dir="${project.dir.src.dotnetcode}" >
          <include name="*.cs" />
        </fileset>
     </add>
    </svn>
  </target>

When I run this task I get the error 'svn: '<filename>' is already under 
version control' which is actually correct, since the directory contains some 
files under version control. In the previous version, this didn't cause any 
problems, it just added the new generated files.

Do you have a clue what is going wrong here?

Thanks,

Patrick

Metadata Imported from Tigris (Issue 1426)

  • Creation Date: 2012-06-12 07:27:35
  • Reporter: patrickhofman
  • Subcomponent: svnant
  • Version: unspecified
  • Milestone: not determined
  • Keywords:
  • Cc:

Comments

2012-07-09 14:03:32 by urbushey

I was having this same issue, just realized that it says in the documentation 
that you can only use the "force" flag if you are using the "dir" attribute (see 
http://subclipse.tigris.org/svnant/svntask.html#add.)

So, what you need to do is change your code to:

<target name="svn-test" depends="prop.init">
    <svn>
      <add force="true" dir="${project.dir.src.dotnetcode}">
     </add>
    </svn>
  </target>

Of course, this means you can no longer use fileset's include attribute to skim 
for *.cs files. My work-around here is to check out the working directory from 
SVN, copy only the files I want into that working directory using a filtered 
<fileset> and then check that in.
@markphip markphip added the bug label Sep 15, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant