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

Re: Feature request: rename after move/copy

From: Holger Stratmann <tigris_at_finch.de>
Date: 2006-07-25 12:36:49 CEST

> Just wanted to let you, and any others who want this functionality,
> know that it is in trunk now. As to when you'll see it in an official
> Subversion release I'm not sure, but it's in the pipeline.

Great!
Along the same lines, but equally if not more important (for me):
If I rename/move/copy a directory, I cannot rename files in that
directory (same message: "... is not in the repository, try committing
first").

This is a real problem for refactoring in the Java world, where you
really want to rename a package (~directory) and also some classes
(~files) in that package in the same commit.
"Intermediate commits" would be broken (i.e. won't compile) or sometimes
it would require a lot of work to have each of them fully functional
(usually it's not even possible because you need to update the package
declaration in the files, so you have to modify them when you rename the
directory!) :-(
One time I needed four commits for some restructuring and I had to spend
some time thinking to minimize this. The "direct route" would've
involved maybe 7 or 8 commits!
One other time I've even had to discard some history in order to get
things done (i.e. perform the copy "outside of SubVersion" in the file
system, then rename/edit all the files you want, THEN add the new
directory and delete the old one - this is very sad ...). As a matter of
fact, this is the only serious problem I currently have with SubVersion...

Will the fix also solve this problem? I can imagine some differences
"under the hood"...

Thx,

Holger

Paul Burba wrote:

> -----Paul Burba <paulb@softlanding.com> wrote: -----
>
> >To: "Ivan Zhakov" <chemodax@gmail.com>
> >From: Paul Burba <paulb@softlanding.com>
> >Date: 07/13/2006 08:30AM
> >cc: dev@subversion.tigris.org, "Gavin Lambert"
> >, "Garrett Rooney"
> ><rooneg@electricjellyfish.net>, users@subversion.tigris.org
> >Subject: Re: Feature request: rename after move/copy
> >
> >"Ivan Zhakov" <chemodax@gmail.com> wrote on 07/12/2006 04:17:49 PM:
> >
> >> On 7/12/06, Paul Burba <paulb@softlanding.com> wrote:
> >> > I'm more than happy to jump back in, but want to check with Ivan
> >
> >first. No
> >> > need to duplicate our efforts.
> >> >
> >> Paul,
> >> Please take it in your hands, because I've changed my job and
> >> unfortunately cannot spend to much time to Subversion now :(
> >Sorry.
> >> I've reviewed your and rooneg patch -- it looks good, one thing
> >that
> >> code for detecting copyfrom_url should be factored out in
> >separated
> >> function.
> >>
> >> --
> >> Ivan Zhakov
> >
> >Hi Ivan,
> >
> >Ok, I'll do that. Good luck in your new position and hope to see you
> >
> >back.
> >
> >For everyone else, watch this space, an updated patch coming
> >shortly.
> >
> >Paul B.
> Gavin,
>
> Just wanted to let you, and any others who want this functionality,
> know that it is in trunk now. As to when you'll see it in an official
> Subversion release I'm not sure, but it's in the pipeline.
>
> Paul B.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org For
> additional commands, e-mail: users-help@subversion.tigris.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jul 25 12:39:08 2006

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.