[PLUGIN] bzr changeset, time to pull again

John A Meinel john at arbash-meinel.com
Sat Jul 2 09:19:42 BST 2005


John A Meinel wrote:
...

>   6. ?????
>   7. Profit?
>
We should have a completely patch compatible mode. Where a rename is
listed as a delete + add patch. This also means that renaming a
directory would cause a cascade of patches to be generated.
I already have some code to do renames as delete+add, but not quite enough.
There is also the problem of rename + modification. Do you delete of old
+ add of new, or delete+add of old, + patch of new.

The current format uses tabs quite liberally for tokenizing. This is
because 'path\twith\ttab'.encode('unicode_escape') will escape tabs,
which means you can str.split('\t') on them, and not be ambiguous.
But some people don't like them, because they don't look any different
from spaces.
If someone wants to offer something else, they are welcome to. But to
the best of my knowledge, the only character that is not allowed in a
unix *path* is a null (\0). And the only extra one not allowed in a
filename is a '/'.
So you're going to have to escape something. And it gets really ugly if
you have to escape a space character. (Though again, python handles
u'\u0020' just fine :) But I don't think we'd like to see:

path\u0020to\u0020my\u0020file.txt
file-id:path\u0020to\u0020my\u0020file.txt-1092309182390-109820381234

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/20050702/29a326aa/attachment.pgp 


More information about the bazaar mailing list