You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jim Cromie <jc...@divsol.com> on 2003/07/28 09:03:39 UTC

Error: I got "svn: Transaction is out of date"

hi all,

Im writing a script that so far is able to make repeatable
errors :-( when importing a directory, and immediately 
taking a snapshot/copy/tag of it.

heres and excerpt (wrapped by mailer)

DOING:
  cd /home/jimc/big; svnadmin create svn-repo
DOING:
  svn import -m 'initial import' 
ref-div/src/echobox/echobox.19981019 
file:////home/jimc/big/svn-repo/trunk/echobox
RESULTS:
...
Adding         ref-div/src/echobox/echobox.19981019/Log.pm
Adding         ref-div/src/echobox/echobox.19981019/Proxy.pm
Adding         ref-div/src/echobox/echobox.19981019/Readme
...

Committed revision 1.
DOING:
  svn copy file:////home/jimc/big/svn-repo/trunk/echobox 
file:////home/jimc/big/svn-repo/tags/echobox/echobox.19981019 
-m echobox.19981019
svn: Transaction is out of date
svn: out of date: `tags' in txn `2'

In svnbook,ch3 I found:

The repository doesn't know or care if your changes make any 
sense as a whole; it only checks to make sure that nobody 
else has changed any of the same files that you did when you 
weren't looking. If somebody has done that, the entire 
commit will fail with a message informing you that one or 
more of your files is out-of-date:

but I dont quite see it - im on transaction 2, (same as rev 
2 ?) so nothing else could have happened to the FS.


this is with v0.25 (Im building .26 now, but this seems
too basic to be a code problem - so Im assuming its a user 
error).

what am I missing ?

tia
jimc


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Error: I got "svn: Transaction is out of date"

Posted by Michael Wood <mw...@its.uct.ac.za>.
On Mon, Jul 28, 2003 at 07:49:11AM -0400, Garrett Rooney wrote:
> Michael Wood wrote:
> 
> >On Mon, Jul 28, 2003 at 03:03:39AM -0600, Jim Cromie wrote:
> >
[snip]
> >>svn import -m 'initial import' 
> >>ref-div/src/echobox/echobox.19981019 
> >>file:////home/jimc/big/svn-repo/trunk/echobox
> >>RESULTS:
> >>...
> >>Adding         ref-div/src/echobox/echobox.19981019/Log.pm
> >>Adding         ref-div/src/echobox/echobox.19981019/Proxy.pm
> >>Adding         ref-div/src/echobox/echobox.19981019/Readme
> >>...
> >>
> >>Committed revision 1.
> >
> >
> >Run "svn up" here.
> 
> That can't possibly be it, his copy does not involve the working copy, 
> so the working copy revision is irrelevant.
[snip]

Oops!  Sorry, you're right.

-- 
Michael Wood <mw...@its.uct.ac.za>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Error: I got "svn: Transaction is out of date"

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
Michael Wood wrote:

> On Mon, Jul 28, 2003 at 03:03:39AM -0600, Jim Cromie wrote:
> 
>>hi all,
>>
>>Im writing a script that so far is able to make repeatable
>>errors :-( when importing a directory, and immediately 
>>taking a snapshot/copy/tag of it.
>>
>>heres and excerpt (wrapped by mailer)
>>
>>DOING:
>> cd /home/jimc/big; svnadmin create svn-repo
>>DOING:
>> svn import -m 'initial import' 
>>ref-div/src/echobox/echobox.19981019 
>>file:////home/jimc/big/svn-repo/trunk/echobox
>>RESULTS:
>>...
>>Adding         ref-div/src/echobox/echobox.19981019/Log.pm
>>Adding         ref-div/src/echobox/echobox.19981019/Proxy.pm
>>Adding         ref-div/src/echobox/echobox.19981019/Readme
>>...
>>
>>Committed revision 1.
> 
> 
> Run "svn up" here.

That can't possibly be it, his copy does not involve the working copy, 
so the working copy revision is irrelevant.

>>DOING:
>> svn copy file:////home/jimc/big/svn-repo/trunk/echobox 
>>file:////home/jimc/big/svn-repo/tags/echobox/echobox.19981019 
>>-m echobox.19981019
>>svn: Transaction is out of date
>>svn: out of date: `tags' in txn `2'
> 
> [snip]

Does the tags directory in the repository already exist?

-garrett



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Error: I got "svn: Transaction is out of date"

Posted by Michael Wood <mw...@its.uct.ac.za>.
On Mon, Jul 28, 2003 at 03:03:39AM -0600, Jim Cromie wrote:
> hi all,
> 
> Im writing a script that so far is able to make repeatable
> errors :-( when importing a directory, and immediately 
> taking a snapshot/copy/tag of it.
> 
> heres and excerpt (wrapped by mailer)
> 
> DOING:
>  cd /home/jimc/big; svnadmin create svn-repo
> DOING:
>  svn import -m 'initial import' 
> ref-div/src/echobox/echobox.19981019 
> file:////home/jimc/big/svn-repo/trunk/echobox
> RESULTS:
> ...
> Adding         ref-div/src/echobox/echobox.19981019/Log.pm
> Adding         ref-div/src/echobox/echobox.19981019/Proxy.pm
> Adding         ref-div/src/echobox/echobox.19981019/Readme
> ...
> 
> Committed revision 1.

Run "svn up" here.

> DOING:
>  svn copy file:////home/jimc/big/svn-repo/trunk/echobox 
> file:////home/jimc/big/svn-repo/tags/echobox/echobox.19981019 
> -m echobox.19981019
> svn: Transaction is out of date
> svn: out of date: `tags' in txn `2'
[snip]

-- 
Michael Wood <mw...@its.uct.ac.za>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Error: I got "svn: Transaction is out of date"

Posted by cm...@collab.net.
Garrett Rooney <ro...@electricjellyfish.net> writes:

> Jim Cromie wrote:
> 
> 
> > ok duh, THX,
> > added a mkdir, which brings up a feature request:
> > "svn mkdir $foo" should act like mkdirhier, then the following would
> > work...
> > should I make an ISSUE of it ?
> 
> Umh, no.  It's exactly the same issue as before.  Copy does not create
> directories for you.

Although, interestingly enough, 'svn import' *does* (now) create
intermediate directories.  :-)

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Error: I got "svn: Transaction is out of date"

Posted by e....@gmx.net.
On my linux box (RH8.0) the same goes for the -p option to the mkdir
command:

   -p, --parents
        no error if existing; create parents if needed

bye,

Erik.

> Garrett Rooney wrote:
> 
> > Jim Cromie wrote:
> >
> >
> >> ok duh, THX,
> >> added a mkdir, which brings up a feature request:
> >> "svn mkdir $foo" should act like mkdirhier, then the following would 
> >> work...
> >> should I make an ISSUE of it ?
> >
> >
> > Umh, no.  It's exactly the same issue as before.  Copy does not create 
> > directories for you.  If you want to put it in tags/echobox/whatever, 
> > then the tags and echobox directories need to already exist.  This is 
> > not a bug, it's just the way the software works.
> >
> > -garrett
> >
> 
> to correct myself, and clarify the request.
> 
> I said:        svn mkdir file:////home/jimc/big/svn-repo/tags -m 'create 
> tags-rep'
> I meant:   svn mkdir file:////home/jimc/big/svn-repo/tags/echobox -m 
> 'create tags-rep'
> 
> I tried the latter, and it failed, for the reasons you stated.
> I then fixed my script, but copy pasted from the wrong log
> 
> 
> But - it could work like mkdirhier, without complications (at least by 
> this beginners reckoning)
> 
> NAME
>        mkdirhier - makes a directory hierarchy
> 
> SYNOPSIS
>        mkdirhier directory ...
> 
> DESCRIPTION
>        The  mkdirhier  command creates the specified directories. Unlike 
> mkdir
>        if any of the parent directories of  the  specified  directory  
> do  not
>        exist, it creates them as well.
> 
> 
> Thanks.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
> 

-- 
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--------------------------------------------------
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Error: I got "svn: Transaction is out of date"

Posted by Jim Cromie <jc...@divsol.com>.
Garrett Rooney wrote:

> Jim Cromie wrote:
>
>
>> ok duh, THX,
>> added a mkdir, which brings up a feature request:
>> "svn mkdir $foo" should act like mkdirhier, then the following would 
>> work...
>> should I make an ISSUE of it ?
>
>
> Umh, no.  It's exactly the same issue as before.  Copy does not create 
> directories for you.  If you want to put it in tags/echobox/whatever, 
> then the tags and echobox directories need to already exist.  This is 
> not a bug, it's just the way the software works.
>
> -garrett
>

to correct myself, and clarify the request.

I said:        svn mkdir file:////home/jimc/big/svn-repo/tags -m 'create 
tags-rep'
I meant:   svn mkdir file:////home/jimc/big/svn-repo/tags/echobox -m 
'create tags-rep'

I tried the latter, and it failed, for the reasons you stated.
I then fixed my script, but copy pasted from the wrong log


But - it could work like mkdirhier, without complications (at least by 
this beginners reckoning)

NAME
       mkdirhier - makes a directory hierarchy

SYNOPSIS
       mkdirhier directory ...

DESCRIPTION
       The  mkdirhier  command creates the specified directories. Unlike 
mkdir
       if any of the parent directories of  the  specified  directory  
do  not
       exist, it creates them as well.


Thanks.



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Error: I got "svn: Transaction is out of date"

Posted by Garrett Rooney <ro...@electricjellyfish.net>.
Jim Cromie wrote:


> ok duh, THX,
> added a mkdir, which brings up a feature request:
> "svn mkdir $foo" should act like mkdirhier, then the following would 
> work...
> should I make an ISSUE of it ?

Umh, no.  It's exactly the same issue as before.  Copy does not create 
directories for you.  If you want to put it in tags/echobox/whatever, 
then the tags and echobox directories need to already exist.  This is 
not a bug, it's just the way the software works.

-garrett


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Error: I got "svn: Transaction is out of date"

Posted by Jim Cromie <jc...@divsol.com>.
Ben Collins-Sussman wrote:

>Jim Cromie <jc...@divsol.com> writes:
>
>  
>
>>DOING:
>>  svn copy file:////home/jimc/big/svn-repo/trunk/echobox
>>file:////home/jimc/big/svn-repo/tags/echobox/echobox.19981019 -m
>>echobox.19981019
>>svn: Transaction is out of date
>>svn: out of date: `tags' in txn `2'
>>    
>>
>
>Uh, there's no /tags directory.   'svn copy' doesn't automatically
>create non-existent directories for you.  It has the same semantics as
>unix 'cp'.
>
>  
>

ok duh, THX, 

added a mkdir, which brings up a feature request:
"svn mkdir $foo" should act like mkdirhier, then the following would work...
should I make an ISSUE of it ?

Committed revision 1.
DOING:
 svn mkdir file:////home/jimc/big/svn-repo/tags -m 'create tags-rep'
RESULTS:

Committed revision 2.
DOING:
 svn copy file:////home/jimc/big/svn-repo/trunk/echobox 
file:////home/jimc/big/svn-repo/tags/echobox/echobox.19981019 -m 
echobox.19981019
svn: Transaction is out of date
svn: out of date: `tags/echobox' in txn `3'





---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Error: I got "svn: Transaction is out of date"

Posted by Ben Collins-Sussman <su...@collab.net>.
Jim Cromie <jc...@divsol.com> writes:

> DOING:
>   cd /home/jimc/big; svnadmin create svn-repo
> DOING:
>   svn import -m 'initial import' ref-div/src/echobox/echobox.19981019
> file:////home/jimc/big/svn-repo/trunk/echobox
> RESULTS:
> ...
> Adding         ref-div/src/echobox/echobox.19981019/Log.pm
> Adding         ref-div/src/echobox/echobox.19981019/Proxy.pm
> Adding         ref-div/src/echobox/echobox.19981019/Readme
> ...
> 
> Committed revision 1.

OK, so your repository now contains a directory called /trunk/echobox,
and that's it.


> DOING:
>   svn copy file:////home/jimc/big/svn-repo/trunk/echobox
> file:////home/jimc/big/svn-repo/tags/echobox/echobox.19981019 -m
> echobox.19981019
> svn: Transaction is out of date
> svn: out of date: `tags' in txn `2'

Uh, there's no /tags directory.   'svn copy' doesn't automatically
create non-existent directories for you.  It has the same semantics as
unix 'cp'.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org