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

Re: question about 'svnversion -c'

From: Ryan Schmidt <subversion-2008c_at_ryandesign.com>
Date: Mon, 22 Dec 2008 01:46:31 -0600

On Dec 22, 2008, at 01:43, Dongsheng Song wrote:

> 2008/12/22 Ryan Schmidt:
>
>> On Dec 22, 2008, at 00:03, Dongsheng Song wrote:
>>
>>> C:\svnbook\book>svnversion -nc
>>> 57:3384M
>>>
>>> What's '57' means ?
>>
>> From "svnversion --help" I see these descriptions:
>>
>> -n [--no-newline] : do not output the trailing newline
>> -c [--committed] : last changed rather than current
>> revisions
>>
>> So I think this means that the least-recently-changed committed
>> file in your
>> working copy was last changed in revision 57, and the most-
>> recently-changed
>> committed file in the working copy was last changed in revision
>> 3384, and
>> there are also uncommitted changes somewhere in your working copy
>> (that's
>> the "M").
>
> [dongsheng_at_x64-linux:~/var/svn/svnbook/book]% svnversion
> 3386
> [dongsheng_at_x64-linux:~/var/svn/svnbook/book]% svnversion -c
> 57:3384
>
> But from the help message:
> % svnversion -help
> ...
> Valid options:
> -n [--no-newline] : do not output the trailing newline
> -c [--committed] : last changed rather than current
> revisions
> -h [--help] : display this help
> --version : show program version information
>
> -c [--committed] : last changed rather than current
> revisions
>
> So I think the output should be:
> [dongsheng_at_x64-linux:~/var/svn/svnbook/book]% svnversion -c
> 3384

Unless you actually changed each and every file in your working copy
in revision 3384, I don't think that's the output you're going to see.

The output you got (57:3384) seems correct to me, assuming there is a
file in your working copy that was changed in revision 57 and not after.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=989503

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2008-12-22 08:47:26 CET

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.