[PLUGIN] bzr changeset, time to pull again

John A Meinel john at arbash-meinel.com
Tue Jul 5 00:42:43 BST 2005


Robey Pointer wrote:

>
> If you normalize the path, then "//" would be an unambiguous
> terminator (and you could follow with spaces for readability):
>
> moon landing.txt//  file-id:moon landing.txt-12389127-123871223784
>
> I think this looks ugly, but decided to bring it up for
> completeness.  I agree that the tabs are kinda gross but have no
> better solution.
>
> robey
>
You actually bring up a potentially better solution. Make the separator
' // ' Then things look like
landing/on/the moon.txt // file-id:the moon.txt-12389127-123871223784 //
text-id:the moon.txt-123123123

You can also detect files that end in a space, because they will have
too many spaces.
So you would have:

myfile  // file-id:myfile -1231231235-134134 // text-id:myfile
-12312312-123123

And parsing becomes a simple:
parts = txt.split(' // ')

I would worry about using '/' without an opening space because of issues
with terminating directories with a slash.

I don't think this is terrible, but I don't know how this would work
with something like a rename, where you would prefer to have something
like: "old_name => new_name"
but "old_name // new_name" isn't terrible.

John
=:->


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20050704/eecc8dee/attachment.pgp 


More information about the bazaar mailing list