[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: Erik Huelsmann <ehuels_at_gmail.com>
Date: Mon, 22 Dec 2008 09:41:41 +0100

On Mon, Dec 22, 2008 at 9:00 AM, Hari Kodungallur
<hkodungallur_at_gmail.com> wrote:
>
> On Sun, Dec 21, 2008 at 11:46 PM, Ryan Schmidt
> <subversion-2008c_at_ryandesign.com> wrote:
>>
>> 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.
>>
>
>
> I am trying to figure out a reason why svnversion would print 3386, and the
> same command with -c would not have 3386 in the range. Since 3386 is the
> highest rev in the working copy, there must be some file/dir in the working
> copy that was last changed in 3386.

Not necessarily: if another file on another branch was changed in that
revision, then the working copy can be 3386. That would be the exact
same working copy as with r3385 and r3384 though.

HTH,

Erik.

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2008-12-22 09:44:00 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.