[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: copy newly added file

From: Tyler Roscoe <tyler_at_cryptio.net>
Date: Thu, 30 Jul 2009 22:16:08 -0700

On Thu, Jul 30, 2009 at 07:38:05PM +0200, FEJES Jozsef wrote:
> I could add x.txt, commit it, then copy it, and do another commit. I
> would expect that I should be able to batch stuff and do it all in a
> single commit.

IME Subversion works better with structural changes (moves and deletes
and the like) if you commit in between these operations. I don't know if
this counts as a "bug" or not.

> Here's a real use-case. We have a .NET project that compiles to class
> libraries and web pages. Class libraries are published to one common
> directory and each web page has it's own publish directory. Web pages
> use the class libraries. I publish the compiled class libraries to the
> library directory and then I copy them to each web directory that needs
> them. Now if we don't publish the trunk, only tags, then my issue is
> reproduced each time.

I'm with you until this last sentence. What do you mean by "publish the
trunk" or "publish tags"?

I don't see where this workflow requires you to add a file and move it
in the same transaction.

> We will have many-many copies of the same huge
> dll's instead of storing each file once and using links in the web
> pages. The need to do this (or anything for that matter) in two steps
> instead of one is a PITA.

I need to understand the above before I can comment, but do you know
that tags and other copies in svn are "cheap"?

> I know that a newly added file doesn't have a history yet but why does
> that matter? That + sign could appear just like it does with another
> file that does have a history, it should be a link nonetheless. I don't

Well the + means "copied with history", but clearly from svn's
perspective there is no history, so I think the output is correct. I
don't know whether the developers think that the overall behavior is
correct.

tyler

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2377239

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-31 07:17:26 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.