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

svn update -r $revision could hang if $revsion is greater than HEAD

From: jason_zhuyx <jason_zhuyx_at_yahoo.com>
Date: Thu, 29 Jul 2010 09:59:56 -0700 (PDT)

Sorry I should have come to this mailing list before submitting my question on Issue Tracker.
Since this issue can only be reproduced on some build machines in my company, I'd like to ask some experts' help on how to do the troubleshooting/debug to understand why such issue exists.

Could someone provide help to me on how to test such issue on my systems? Thanks
to hwright and Andy Levy's feedback. But unfortunately, I have tried on several
machines and this issue repeats (even after I upgrade svn to version 1.6.12

On CentOS (2.6.18-128.el5 CentOS release 5.3), the svn version is 1.6.2
(r37639). run `svn up -r 90000` on command line will not return until press
Ctrl+Z. And I had to run `svn cleanup` or the workspace was locked.

On Windows XP SP3, the latest svn I am testing is 1.6.12 (r955767), installed
from CollabNet. The command prompt will never return to next prompt until I
have to kill svn.exe in Task Manager.

I found such issue when I was writing a script which could accept an invalid
revision and hang, so that I had to test the revision range by myself.

I'd appreciate any hint for me to figure out why this happens on my

------- Additional comments from hwright_at_tigris.org Mon Jul 19 17:11:51 -0700
2010 -------
Can not reproduce using 1.6.12 (tested against the asf repo):

$ svn up -r1000000
subversion/libsvn_ra_neon/util.c:723: (apr_err=160006)
svn: No such revision 1000000

--- On Tue, 7/20/10, Andy Levy <andy.levy_at_gmail.com> wrote:
From: Andy Levy <andy.levy_at_gmail.com>
Subject: Re: svn update -r $revision could hang if $revsion is greater than HEAD
To: "jason_zhuyx" <jason_zhuyx_at_yahoo.com>
Cc: users_at_subversion.apache.org
Date: Tuesday, July 20, 2010, 6:24 AM

XP SP3 here, 1.6.6 (r40053), I cannot reproduce the issue.

C:\_Projects\workspace\proj>svn up
At revision 5604.

C:\_Projects\workspace\proj>svn up -r 6000
svn: No such revision 6000

C:\_Projects\workspace\proj>svn --version
svn, version 1.6.6 (r40053)
   compiled Oct 19 2009, 09:36:48

No hangs.
Received on 2010-07-29 19:00:32 CEST

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