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

Re: RFE: "svn mv --keep-local" (and perhaps "svn cp --keep-local")

From: Stefan Sperling <stsp_at_elego.de>
Date: Wed, 12 Feb 2020 11:27:05 +0100

On Wed, Feb 12, 2020 at 05:21:55AM -0500, Nathan Hartman wrote:
> On Wed, Feb 12, 2020 at 1:32 AM Nogin, Aleksey <anogin_at_hrl.com> wrote:
>
> > Currently, “svn rm” supports “--keep-local” (as in – record the change in
> > the db, but do not change the working copy files), but neither svn mv, nor
> > svn cp do.
> >
> >
> >
> > Common use case:
> >
> >
> >
> > % mv a b
> >
> > # Ah, crap, I meant “svn mv”!
> >
> > % svn mv –keep-local a b
> >
> >
> >
> > Of course, there is always the workaround of “mv b a; svn mv a b”, but
> > it’s quite annoying to have to do it.
> >
>
> And if i understand correctly, it's already implemented in the svn
> libraries but the functionality is not exposed to the command line client
> for some reason.
 
I believe TortoiseSVN's GUI already implements a "Repair Move" feature
which makes use of these APIs. It would make sense to offer the same
functionality on the command line indeed.
Received on 2020-02-12 11:27:25 CET

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