You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Dave Pawson <da...@gmail.com> on 2005/09/16 14:05:13 UTC
svn and ant
running an ant script,
I delete a directory
.... trunk/documentation
the generate content in it using the ant script.
when I try to commit this, svn gets upset.
I have to delete the directory, update, then generate files
which overwrite the directory contents.
I can then commit OK.
Is there anyway round this please?
svn add trunk/documentation fails too.
regards
--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: svn and ant
Posted by Dave Pawson <da...@gmail.com>.
On 18/09/05, Ryan Schmidt <su...@ryandesign.com> wrote:
> On Sep 16, 2005, at 16:29, Dave Pawson wrote:
> If you mean the Ant script, then I'd say that's outside the scope of
> the Subversion book.
Yes, I'd agree
>
> If you meant the wisdom that the .svn directories are important for
> Subversion and not to be indiscriminately deleted, then The Book does
> at least try to suggest that [1]:
>
> "A working copy also contains some extra files, created and
> maintained by Subversion [...]. In particular, each directory in your
> working copy contains a subdirectory named .svn, also known as the
> working copy administrative directory."
>
> The only way I see for it to be clearer would be to add "Do not
> delete the administrative directories or any of their contents" but
> shouldn't that go without saying?
True...
If only users didn't do such silly things
(at least once :-)
<quote>The only thing about common sense, is that it isn't quite so
common</quote>
regards
--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: svn and ant
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Sep 16, 2005, at 16:29, Dave Pawson wrote:
> On 16/09/05, JP Fiset <jp...@fiset.ca> wrote:
>
>> When deleting the directory, you end up deleting all .svn
>> subdirectories. This is what upsets subversion. Just delete the
>> actual
>> files, not the directories. Do not delete anything in **/.svn/*.*
>>
>> It should look something like:
>>
>> <delete>
>> <fileset dir="directory">
>> <include name="**/*.*"/>
>> <exclude name="**/.svn/*.*"/>
>> </fileset>
>> </delete>
>
> Now I understand :-)
>
> Many thanks for that.
> A worthwhile addition to 'the book' I'd have thought!
If you mean the Ant script, then I'd say that's outside the scope of
the Subversion book.
If you meant the wisdom that the .svn directories are important for
Subversion and not to be indiscriminately deleted, then The Book does
at least try to suggest that [1]:
"A working copy also contains some extra files, created and
maintained by Subversion [...]. In particular, each directory in your
working copy contains a subdirectory named .svn, also known as the
working copy administrative directory."
The only way I see for it to be clearer would be to add "Do not
delete the administrative directories or any of their contents" but
shouldn't that go without saying?
[1] http://svnbook.red-bean.com/en/1.1/ch02s03.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: svn and ant
Posted by Dave Pawson <da...@gmail.com>.
On 16/09/05, JP Fiset <jp...@fiset.ca> wrote:
> When deleting the directory, you end up deleting all .svn
> subdirectories. This is what upsets subversion. Just delete the actual
> files, not the directories. Do not delete anything in **/.svn/*.*
>
> It should look something like:
>
> <delete>
> <fileset dir="directory">
> <include name="**/*.*"/>
> <exclude name="**/.svn/*.*"/>
> </fileset>
> </delete>
Now I understand :-)
Many thanks for that.
A worthwhile addition to 'the book' I'd have thought!
regards
--
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: svn and ant
Posted by JP Fiset <jp...@fiset.ca>.
When deleting the directory, you end up deleting all .svn
subdirectories. This is what upsets subversion. Just delete the actual
files, not the directories. Do not delete anything in **/.svn/*.*
It should look something like:
<delete>
<fileset dir="directory">
<include name="**/*.*"/>
<exclude name="**/.svn/*.*"/>
</fileset>
</delete>
Dave Pawson wrote:
>running an ant script,
> I delete a directory
> .... trunk/documentation
>the generate content in it using the ant script.
>
>when I try to commit this, svn gets upset.
> I have to delete the directory, update, then generate files
> which overwrite the directory contents.
>
>I can then commit OK.
>
>Is there anyway round this please?
>svn add trunk/documentation fails too.
>
>regards
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org