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

Re: Feature request (1) -- svn historyset

From: Talden <talden_at_gmail.com>
Date: Sat, 14 Feb 2009 12:40:31 +1300

> Sometimes when using SVN, I have added a file, which was a copy of a
> version controlled file. That is, I have done this:
>
> $ cp file1 file2
> $ svn add file2
>
> when I *should* have done this:
>
> $ svn cp file1 file2
>
> I would like to be able to retrospectively link <file2> to <file1> so
> that it will be added "with history", without having to do this:
>
> $ svn revert file2 ### undo the add
> $ mv file2 file2.tmp ### move out of the way
> $ svn cp file1 file2
> $ rm file2
> $ mv file2.tmp file2 ### move back
> $ svn setprop propname propvalue file2 ### restore any
> properties...
>
> I'd like, instead, to be able to do something like this
>
> $ svn historyset file1 file2[@pin-revision
> <mailto:file2_at_pin-revision> ] [-r revision]
>
> Is this already supported in some way that I've missed?

Not that I know of.

perhaps simply allowing a subsequent 'cp' to see the add and so the
appropriate magic.

1 $ cp file1 file2
2 $ svn add file2

Whoops

3 $ svn cp --after file1 file2

Command 3 should work whether or not 2 was used. That is, it should
work for unversioned files as well. An error should occur if the file
is already added with history but a --force should be able to make it
change to the new history.

--
Talden
------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1153994
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-02-14 00:41:26 CET

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.