Apparently, this has been fixed for 1.7. The reporter doesn't say which
version they're using.
~/w$ ll
total 8
-rw-r--r-- 1 brane staff 86 Sep 28 16:47 foo
~/w$ cat foo
$Revision: 3 $
$Author: brane $
$Date: 2012-09-28 16:47:15 +0200 (Fri, 28 Sep 2012) $
~/w$ svn cp foo bar
A bar
~/w$ cat bar
$Revision: 3 $
$Author: brane $
$Date: 2012-09-28 16:47:15 +0200 (Fri, 28 Sep 2012) $
~/w$ svn st -v
1 1 brane .
A + - 3 brane bar
3 3 brane foo
~/w$ svn --version -q
1.7.7-dev
-- Brane
On 28.09.2012 16:30, C. Michael Pilato wrote:
> 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
>
--
Certified & Supported Apache Subversion Downloads:
http://www.wandisco.com/subversion/download
Received on 2012-09-28 16:52:52 CEST