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

Re: Wrong revision number from running "svn list -v" on local working directory.

From: Dominic Anello <danello_at_danky.com>
Date: 2005-06-24 20:15:30 CEST

On 2005-06-24 09:12:24 -0700, Kevin Hung wrote:
> I am learning Subversion and playing around with it. I
> run into problem with running "svn list" on local
> working directory. I have two files in my local
> working directory. My understanding (after reading the
> svn book) is that running "svn list -v" on local
> directory is that same as running "svn list -v" on
> repository directory. However, it does not seem to be
> true.
>
> /home/khung/wcdma> svn list -v
> 7 khung 1232 Jun 23 14:22 help.txt
> 7 khung 27648 Jun 23 14:22 wcdma.xls
>
> /home/khung/wcdma> svn list
> file:///home/khung/repos/wcdma/trunk -v
> 10 khung 1395 Jun 23 18:18 help.txt
> 11 khung 27648 Jun 23 18:27 wcdma.xls
>
> The latest revision number of help.txt is 10 and the
> latest revision number of wcdma.xls is 11. So the
> revision number returned by "svn list -v" on local
> working directory is wrong.
>
> I get correct revision number if I run the same
> command on local file (instead of local directory).
>
> /home/khung/wcdma> svn list help.txt -v
> 10 khung 1395 Jun 23 18:18 help.txt
> /home/khung/wcdma> svn list wcdma.xls -v
> 11 khung 27648 Jun 23 18:27 wcdma.xls
>
> Am I missing something?
----8<----

What you are missing is that you are probably dealing with a mixed
revision working copy.

If you do:
/home/khung/wcdma> svn info

You will probably see that the wcdma directory is somwhere between r7
and r9.

Remember that
/home/khung/wcdma> svn ls -v

translates into
/home/khung/wcdma> svn list -r BASE -v .

So if wcdma is not at HEAD, you will see different results than when
listing the URL without a revision argument.

-Dominic

  • application/pgp-signature attachment: stored
Received on Fri Jun 24 20:19:04 2005

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.