subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Иван Селин <>
Subject Re: Cannot get info for a file that was inside of file-replaced directory
Date Tue, 19 Nov 2019 05:48:56 GMT
<div>Hi, Nathan!</div><div> </div><div>Thanks for your reply.
If you need anything else, I can provide more information to help debug the problem.</div><div> </div><div>Regards,</div><div>Ivan.</div><div> </div><div> </div><div>19.11.2019,
08:04, "Nathan Hartman" &lt;;:</div><blockquote><div><div><div><div>On
Mon, Nov 18, 2019 at 4:53 AM Иван Селин &lt;<a href=""></a>&gt;
wrote:</div><div><blockquote style="border-left-color:rgb( 204 , 204 , 204
);border-left-style:solid;border-left-width:1px;margin:0px 0px 0px 0.8ex;padding-left:1ex"><div>Hi!</div><div> </div><div>I
think I've found a bug in subversion client. Setup is as follows:</div><div>1.
Create directory with a file in it — commit 1</div><div>2. Replace directory
with other file — commit 2</div><div><div>3. Call "svn info dir/file@1"
— it should give information about dir/file at revision 1, but it fails saying that "dir"
is a file at latest revision:</div><div> </div><div><span style="font-family:'courier
new' , monospace">svn: E160016: Failure opening '/dir' in revision 2</span></div><div><span
style="font-family:'courier new' , monospace">svn: E160016: '/dir' is not a directory in
filesystem '0bc899d5-c233-4fed-98a3-8705ddfc96c4'</span></div></div><div>But
directory can be listed, it shows the file, and file can be listed too:</div><div><div><div><span
style="font-family:'courier new' , monospace">  $ svn info file:///tmp/subversion-info-on-replaced-file/repo/dir@1</span></div><div><span
style="font-family:'courier new' , monospace">Path: dir</span></div><div><span
style="font-family:'courier new' , monospace">URL: file:///tmp/subversion-info-on-replaced-file/repo/dir</span></div><div><span
style="font-family:'courier new' , monospace">Relative URL: ^/dir</span></div><div><span
style="font-family:'courier new' , monospace">Repository Root: file:///tmp/subversion-info-on-replaced-file/repo</span></div><div><span
style="font-family:'courier new' , monospace">Repository UUID: 0bc899d5-c233-4fed-98a3-8705ddfc96c4</span></div><div><span
style="font-family:'courier new' , monospace">Revision: 1</span></div><div><span
style="font-family:'courier new' , monospace">Node Kind: directory</span></div><div><span
style="font-family:'courier new' , monospace">Last Changed Author: ivanselin</span></div><div><span
style="font-family:'courier new' , monospace">Last Changed Rev: 1</span></div><div><span
style="font-family:'courier new' , monospace">Last Changed Date: 2019-11-18 11:38:16 +0300
(Пн, 18 ноя 2019)</span></div><div> </div><div><span
style="font-family:'courier new' , monospace">  $ svn list file:///tmp/subversion-info-on-replaced-file/repo/dir@1</span></div><div><span
style="font-family:'courier new' , monospace">file</span></div><div><span
style="font-family:'courier new' , monospace">  $ svn list file:///tmp/subversion-info-on-replaced-file/repo/dir/file@1</span></div><div><span
style="font-family:'courier new' , monospace">file</span></div></div></div><div> </div><div>So,
only "info" does not work. It seems that it's performing directory check against HEAD instead
of provided peg revision. Adding --revision key changes nothing. This is trunk svn (1.14.0-dev,
r1869957), svn 1.9.7 does not have this bug, it correctly shows info.</div><div> </div><div>Sample
reproduction script attached.</div></blockquote><div> </div><div>Hello
Ivan,</div><div> </div><div>Thank you for reporting this.</div><div> </div><div>I
performed similar steps and I am seeing the same result, namely:</div><div> </div><div><div>$
svn info "$repo/dir/file"@1</div><div>svn: E160016: Failure opening '/dir' in
revision 2</div></div><div>svn: E160016: '/dir' is not a directory in filesystem
'(snip)'</div><div> </div><div>You asked for peg revision 1, it's
looking in revision 2.</div><div> </div><div>I'm investigating...</div><div> </div><div>Thanks
again for reporting this.</div><div> </div><div>Nathan</div><div> </div></div></div></div></div></blockquote><div> </div><div> </div>
View raw message