[RFC] Changes to 'selftest --starting-with'

Vincent Ladeuil v.ladeuil+lp at free.fr
Thu Aug 28 10:54:52 BST 2008


>>>>> "Harald" == Harald Meland <harald.meland at usit.uio.no> writes:

<snip/>

    >> Why do you find it confusing though ? This will only be used on
    >> the command line, not inside a python package.

    Harald> Sure, but to my mind the relative import syntax is
    Harald> somehow related to the "relative to current
    Harald> directory" syntax in the shell (i.e. "./foobar").

All right, confusion is confusion. I don't want confusion :)

John made a suggestion for translating paths to get a completion
mechanism from command line. I think this is orthogonal to the
prefixes issue, so let's keep them separate.

Since bzr itself is just the script and all the real code is in
bzrlib anyway, without prefixes all legal values starts with
'bzrlib.'.

Since that will not change in the foreseeable future, anything
different than 'bzrlib.' can be used as a prefix.

Thanks to your inputs, I realized that there is no real need for
a leading special char. s.split('.') (s being the -s argument) is
the prefix, either it's 'bzrlib' and it's left untouched or it
appears in a prefix registry and is replaced or it's something
else and it's an error (I recently mistyped 'bzlib.' in fact).

Does that suit you ?

     Vincent



More information about the bazaar mailing list