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

locking a file renders repos unusable with older clients

From: Eric Hanchrow <offby1_at_blarg.net>
Date: 2005-03-25 17:45:50 CET

I've been using 1.1.3 for a long time, and decided to play with
locking a little bit. So I built in trunk (r13638) and did the
following:
    $ cd /usr/local/src/svn-live # this is my wc of trunk

    $ touch ~/.lock-me

    $ /usr/bin/svn add ~/.lock-me
    A /home/erich/.lock-me

    $ ./svn ci ~/.lock-me -m ""
    Adding /home/erich/.lock-me
    Transmitting file data .
    Committed revision 1596.

    $ ./svn lock ~/.lock-me
    Waiting for Emacs...
    '.lock-me' locked by user 'erich'.
    # Oh good, "svn lock" appears to do something.

    $ cd
    # edit ~/.lock-me some more

    $ /usr/bin/svn ci .lock-me # I'm not sure what to expect here; I
                                # assumed the checkin would complete
                                # as if the file weren't locked
    Waiting for Emacs...
    svn: Commit failed (details follow):
    svn: Unable to open an ra_local session to URL
    svn: Unable to open repository 'file:///home/erich/svn-repos/trunk/home'
    svn: Expected version '3' of repository; found version '4'
    svn: Your commit message was left in a temporary file:
    svn: '/home/erich/svn-commit.tmp'
    # Hmm, that's an odd error message

    $ svn up
    svn: Unable to open an ra_local session to URL
    svn: Unable to open repository 'file:///home/erich/svn-repos/trunk/home'
    svn: Expected version '3' of repository; found version '4'
    # Oh s****

It looks as if the "svn lock" command has bumped my repository
version, and that therefore (short of a dump/reload), I can no longer
use my old client with the repository. I realize this is probably by
design, and that I'm using dev. code, but I sure would have
appreciated, at the very least, a mention of this behavior in
.../notes/locking/ or something.

In any case, it looks like I now must do "svnadmin dump" and "svnadmin
load" in order to recover the ability to use the repository with older
clients. Bah.

(max bowsher apparently has warned that this would happen, and
encouraged me to whine loudly on the -dev list).

-- 
[Dijkstra's] great strength is that he is uncompromising.  It
would make him physically ill to think of programming in C++.
        -- Donald E. Knuth
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Mar 25 17:50:46 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.