On 4/16/06, Jason Kealey <jkealey@shade.ca> wrote:
> Here are some reproduction steps. I have prefixed the Output with ** in
> order to quickly identify the problematic situations.
>
> The platform is Windows Server 2003 (repro steps can be trivially changed to
> work on other OSes).
>
> I am using:
> svn, version 1.3.1 (r19032)
> compiled Mar 30 2006, 02:41:28
>
> In your main folder (ex: c:\svn\)
> svnadmin create mockup
> (setup auth with harry/harryssecret in conf directory)
>
>
> In a temp folder (ex: c:\temp\)
> svn co --username harry --password harrysecret svn://localhost/mockup
>
> cd mockup
> svn propget svn:mime-type svn://localhost/mockup/not_here_at_0
> ( **Output: svn: Unknown node kind for 'svn://localhost/mockup/not_here' )
> ( Same happens if used bdb instead of fsfs)
>
Ok, that's a bit weird. I'll see what I can do about that.
> dir > file.txt
> svn add file.txt
> svn commit --message test
>
> svn propget svn:mime-type svn://localhost/mockup/not_here_at_0
> ( **Output: svn: Unknown node kind for 'svn://localhost/mockup/not_here' )
> svn propget svn:mime-type svn://localhost/mockup/not_here_at_1
> ( **Output: svn: Unknown node kind for 'svn://localhost/mockup/not_here' )
> svn propget svn:mime-type svn://localhost/mockup/file.txt_at_0
> ( **Output: svn: Unknown node kind for 'svn://localhost/mockup/file.txt' )
> svn propget svn:mime-type -r 0 file.txt
> ( Output: svn: Unable to find repository location for 'file.txt' in
> revision 0 )
> svn propget svn:mime-type -r 0 file.txt@0
> ( **Output: svn: Unknown node kind for 'svn://localhost/mockup/file.txt' )
> svn propget svn:mime-type svn://localhost/mockup/file.txt_at_1
> ( Output: is blank (okay because file.txt is not a binary file) )
> svn propget svn:mime-type file.txt@1
> ( Output: is blank (okay because file.txt is not a binary file) )
> svn propget svn:mime-type file.txt@0
> ( Output: is blank (looks odd to me, but it may be due to the fact I don't
> understand the difference between the -r REV and @REV issue) )
>
> copy c:\windows\notepad.exe .
> svn add notepad.exe
> ( Output: A (bin) notepad.exe (shows the file is binary) )
> svn commit --message test2
>
>
> svn propget svn:mime-type notepad.exe
> ( Output: application/octet-stream (confirmation, mime-type was set))
> svn propget svn:mime-type notepad.exe@0
> ( Output: application/octet-stream (See ### below) )
> svn propget svn:mime-type notepad.exe@1
> ( Output: application/octet-stream (See ### below) )
> svn propget svn:mime-type notepad.exe@1136253
> ( Output: application/octet-stream (See ### below) )
> svn propget svn:mime-type -r 2 notepad.exe
> ( Output: application/octet-stream (okay))
> svn propget svn:mime-type -r 1 notepad.exe
> ( Output: svn: Unable to find repository location for 'notepad.exe' in
> revision 1 (good error message))
> svn propget svn:mime-type -r 1 notepad.exe@1
> ( **Output: svn: Unknown node kind for
> 'svn://localhost/mockup/notepad.exe' )
> svn propget svn:mime-type -r 2 notepad.exe@1
> ( **Output: svn: File not found: revision 1, path '/notepad.exe' (See ###
> below) )
> svn propget svn:mime-type svn://localhost/mockup/notepad.exe_at_0
> ( **Output: svn: Unknown node kind for
> 'svn://localhost/mockup/notepad.exe')
> svn propget svn:mime-type svn://localhost/mockup/notepad.exe_at_1
> ( **Output: svn: Unknown node kind for
> 'svn://localhost/mockup/notepad.exe')
> svn propget svn:mime-type svn://localhost/mockup/notepad.exe_at_2
> ( Output: application/octet-stream )
> svn propget svn:mime-type svn://localhost/mockup/notepad.exe_at_3
> ( Output: svn: No such revision 3)
>
> svn delete notepad.exe
> svn ci --message deleted
>
>
> svn propget svn:mime-type notepad.exe
> ( Output: svn: 'notepad.exe' is not under version control)
> svn propget svn:mime-type notepad.exe@2
> ( Output: svn: 'notepad.exe' is not under version control)
> svn propget svn:mime-type svn://localhost/mockup/notepad.exe_at_2
> ( Output: application/octet-stream)
> svn propget svn:mime-type svn://localhost/mockup/notepad.exe_at_1
> ( **Output: svn: Unknown node kind for
> 'svn://localhost/mockup/notepad.exe')
> svn propget svn:mime-type -r 2 svn://localhost/mockup/notepad.exe
> ( Output: svn: File not found: revision 3, path '/notepad.exe' (See ###
> below))
>
> svn propget svn:mime-type --revprop -r 2 notepad.exe
> ( Output: svn: Either a URL or versioned item is required (this is the
> first thing I tried, before learning what --revprop was for)
> svn propget svn:mime-type --revprop -r 2 svn://localhost/mockup/notepad.exe
> ( Output: none. Confused me at first, I thought I had the right syntax,
> but the file didn't have an svn:mime-type)
It has nothign to do with the syntax, it's the fact that svn:mime-type
is not a revprop, so asking for a revprop by that name will get you
nothing.
> ###: These look odd to me, but it may be due to the fact I don't understand
> the difference between the -r REV and @REV issue; is there documentation
> somewhere so that I can read up on this?
There should be a section on peg revisions in http://svnbook.org/
-garrett
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Apr 17 19:42:25 2006