Tyler Roscoe írta:
> On Thu, Jul 30, 2009 at 07:01:37PM +0200, FEJES Jozsef wrote:
>> I think a found a bug, and I'm asking you to confirm. Suppose we have an
>> up-to-date, versioned directory with a file Program.cs in it. Now let's
>> create a new file, x.txt, and do 'svn add x.txt'. Don't commit yet. Make
>> a copy of both files: 'svn copy Program.cs Program2.cs' and 'svn copy
>> x.txt x2.txt'. Here's the output of 'svn status':
>>
>> A x.txt
>> A x2.txt
>> A + Program2.cs
>>
>> My point: when copying a file already under version control, copy
>> behaves as I expect it, there's a link in SVN, the + sign indicates
>> that, but when copying a file not committed yet, there's no link, it's
>> treated as a completely new file, no + sign.
>
> You haven't committed x.txt, right? So it doesn't have any history, so
> svn doesn't mark a copy of it as having history. What do you think svn
> should do instead?
>
> Is there a real use case here, or is this all hypothetical?
>
> tyler
>
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.
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. 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 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
know how it works internally, I imagine it like there's a property on
x2.txt that says that 'I was copied from x.txt'.
--
[ FEJES Jozsef ]
http://joco.name
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2377066
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-07-30 20:51:18 CEST