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

Re: Is there a replace or copy with replace command

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2003-09-11 23:31:16 CEST

Ben Collins-Sussman <sussman@collab.net> writes:

> But I thought maybe I could do it in a single transaction, using the
> 'replace' action in the working copy. I ran these commands:
>
> $ svn rm dir2
> $ rm -rf dir2

Sneaky! Is that breaking the rules?

> $ svn cp dir1 dir2
>
> ...at this point, 'svn st' shows 'A + dir2', and the entry claims
> that dir2 is 'schedule=replace' with copy-history.
>
> But when I try to commit the replacement, I get an out-of-date error
> on dir2. I'm not sure why.
>
> Philip, any ideas? Maybe this is a bug?

$ svnadmin create repo
$ svn mkdir file://`pwd`/repo/zig file://`pwd`/repo/zag -m ""
$ svn co file://`pwd`/repo wc
$ svn rm wc/zig
$ rm -rf wc/zig
$ svn mv wc/zag wc/zig
$ svn st wc
D wc/zag
A + wc/zig
$ svn ci wc
Deleting wc/zag
Adding wc/zig

It's attempting to add the new zig before deleting the original zig.

../svn/subversion/libsvn_client/commit.c:727: (apr_err=160028)
svn: Transaction is out of date
svn: Commit failed (details follow):
../svn/subversion/libsvn_repos/commit.c:114: (apr_err=160028)
svn: out of date: `zig' in txn `a'
../svn/subversion/clients/cmdline/util.c:363: (apr_err=160028)
svn: Your commit message was left in a temporary file:
../svn/subversion/clients/cmdline/util.c:364: (apr_err=160028)
svn: '/home/pm/sw/subversion/obj/wc/svn-commit.8.tmp'

We get out of date because there is already an item with the same
name.

-- 
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 11 23:32:28 2003

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.