Despite the protocol failure by the reporter, I do think there's a bit of UI
#fail here. Subversion users shouldn't be expected to know that "-1" is
secret code for "invalid revision". Our keyword expansion code should just
show a empty revision there instead. I'm guessing we show -1 in 'svn
status' and 'svn info' output too. Let's not do that, m'kay?
On 09/28/2012 09:15 AM, Branko Čibej wrote:
> On 28.09.2012 12:27, SENTHIL C wrote:
>> Hi Support,
>
> This is not a Subversion support mailing list. Your question more
> properly belongs on users_at_subversion.apache.org.
>
> -- Brane
>
> P.S.: Revision, Author and Date are not defined until you commit a file
> to the repository.
>
>
>> I can see that Revision shows as "-1" when i copy the existing file
>> and added a new file in svn via "svn cp" command (Hope "svn cp"
>> command is like "svn add" command)
>>
>> Below are the steps that I followed:
>>
>> 1. Assume that "svn:keywords" is already been set for "Prop.txt" and
>> its in version control
>> Command used: svn propset svn:keywords "Rev Author Date"
>> Prop.txt
>>
>> 2. Copying the existing file (Prop.txt) to new file called "Propnew.txt"
>> Command used: svn cp Prop.txt Propnew.txt
>>
>> 3. Viewing/Reading the Propnew.txt
>>
>> Command used: cat Propnew.txt
>>
>> Output: $ Rev: -1 $
>> $ Author: $
>> $ Date: $
>>
>> Hope, it should not reflect as -1 (negative value).
>>
>> Thanks & Regards
>> Senthil Kumar C
>
--
C. Michael Pilato <cmpilato_at_collab.net>
CollabNet <> www.collab.net <> Enterprise Cloud Development
Received on 2012-09-28 16:31:06 CEST