On 5 January 2011 15:43, Mikkel Kamstrup Erlandsen
<email address hidden> wrote:
> On 5 January 2011 12:38, Michal Hruby <email address hidden> wrote:
>>> file:///home/mikkel/myproject/trunk#27
>>
>> This is a perfectly valid file (directory) name, with one little problem
>> that it doesn't exist.
>
> This is *not* a file name. It is a URI. Let's keep the terminology
> correct here. It has path member being /home/mikkel/myproject/trunk
> and has a URI fragment of 27. Please see
> http://labs.apache.org/webarch/uri/rfc/rfc3986.html#components.
>
> Fragments should be definition point to some resource inside the
> resource specified by the path element. If we consider the path
> element as a bzr repo, and not just a file, then I think that a revno
> fragment is perfectly reasonable.
BTW - and if an app instructed to open file:///foo.txt#27 fails with
"Can not open /foo.txt#27. No such file or directory." Then that's a
bug in the app. Because the fragment should not be taken into account
when resolving the path.
On 5 January 2011 15:43, Mikkel Kamstrup Erlandsen /home/mikkel/ myproject/ trunk#27 myproject/ trunk labs.apache. org/webarch/ uri/rfc/ rfc3986. html#components.
<email address hidden> wrote:
> On 5 January 2011 12:38, Michal Hruby <email address hidden> wrote:
>>> file://
>>
>> This is a perfectly valid file (directory) name, with one little problem
>> that it doesn't exist.
>
> This is *not* a file name. It is a URI. Let's keep the terminology
> correct here. It has path member being /home/mikkel/
> and has a URI fragment of 27. Please see
> http://
>
> Fragments should be definition point to some resource inside the
> resource specified by the path element. If we consider the path
> element as a bzr repo, and not just a file, then I think that a revno
> fragment is perfectly reasonable.
BTW - and if an app instructed to open file:///foo.txt#27 fails with
"Can not open /foo.txt#27. No such file or directory." Then that's a
bug in the app. Because the fragment should not be taken into account
when resolving the path.