cvsps-import plugin on Cygwin [2]
John Arbash Meinel
john at arbash-meinel.com
Thu Jan 11 17:33:55 GMT 2007
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
John Arbash Meinel wrote:
> Alexander Belchenko wrote:
...
> You would need to play with line 170 in cvsps/parser.py:
>
> fname, version = line[1:].rsplit(':', 1)
> versions = version.split('->')
> assert len(versions) == 2
> self._patchset.members.append((fname, versions[-1].strip()))
>
> Basically you should be able to do something like:
>
> fname = fname.decode(self._encoding)
>
> That might at least get you started. You'll have to tell me what
> encoding the filenames are in, though.
There is one more level that I just realized. We need to know what
encoding to pass back to 'co' so that it is able to find the ",v" files
on disk. Inside bzr we should be treating them as Unicode, but we have
to spawn a command, and that is an 8-bit interface.
Also, to help you with the '**FUNKY**' stuff, it probably is as simple
as changing cvsps/parser.py and adding:
# There will probably need to be more in the future, but this should be
# a good start
def _sanitize_name(self, branch_or_tag):
return branch_or_tag.replace('*', '@')
And then modifying:
def _handle_ancestor_branch
def _handle_branch
def _handle_tag
So that they all call _sanitize_name on the branch or tag name that they
have been given.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFFpnUDJdeBCYSNAAMRAl3pAJ9u7w9HgRIQ5UTWQnoLPF1zTOdC5gCfZXAC
6ex/pbzAqvOJAMB6YrNHL1c=
=0lG5
-----END PGP SIGNATURE-----
More information about the bazaar
mailing list