[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: vss2svn.py

From: Roelof Blom <roelof_at_blombrothers.com>
Date: 2004-02-18 12:27:28 CET

Hi Jens,

Testing the latest version (r29) of vss2svn.py I discovered it does not
seem to handle deleted, purged or destroyed projects. Below is the
traceback information of vss2svn.py.

************ Version 121 *****************
User: Admin Date: 16-01-04 Time: 13:04
$CRXDQWHFA deleted

Traceback (most recent call last):
  File "D:\downs\scm\subversion\vss2svn\vss2svn.py", line 747, in ?
    InfoCache = GetInfoCache(vss_base)
  File "D:\downs\scm\subversion\vss2svn\vss2svn.py", line 545, in
GetInfoCache
    raise RuntimeError('action %s not handled' % action)
RuntimeError: action deleted not handled

Having never written any Python code I attempted to fix this problem.
The attached patch is the result: it handles deleted, purged, destroyed
or recovered projects. It works for me, but probably isn't the best way
to do it in Python. Can you please review it?

Regards,
Roelof Blom.

Jens B. Jorgensen wrote:

> Ok, I've done some more work on this and seem to have advanced its
> stability and functionality. It still does not handle the "store only
> latest version" flag for those who need that. It also doesn't handle
> Branch or Share operations. It does however handle
> deleted/recovered/purged/destroyed files though. I made the handling
> of environment variables and command-lines params (hopefully) a
> little more robust. A major change I made was replacing the command
> history parsing to use regexps which is a big improvement. Things
> like spaces in filenames which were certain death before should work
> now.
>
> It's still got a way to go but this is progress. If anyone would care
> to grab the lastest version (see URL below) and give it a try please
> go ahead. I'll hopefully have improvements soon.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

  • application/x-vnd.mozilla.guess-from-ext attachment: vss2svn.patch
Received on Wed Feb 18 12:22:18 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.