On Mon, 22 Jan 2018 14:03:51 +0100, Branko ?ibej <br...@apache.org> wrote:
>But the moral of this whole story is this: After any major surgery on a >version control system and conversion from one system to another is >certainly major one should thoroughly verify the result before >bringing it into production. Branko, you are completely right and now I am considering to go the extreme way and *only* put the latest HEAD revision on TRUNK for all projects into SVN. Basically taking a snapshot at the time I closed down CVS and import that into svn. So I wonder if there is a way to automate this? Do you (or anyone else reading this) know if cvs2svn can be set to only deal with the HEAD revision of files on TRUNK when creating the dump files? I still want the target projects to be first-level directories in the resulting svn repository (I am dealing with 8-9 CVS repositories here). So the stuff I have put at the end of my options file must still work: # 1)List all projects automatically import os cvs_repo_main_dir = '/home/bosse/CVSREPOS/' + inputreponame projects = os.listdir(cvs_repo_main_dir) # 2) Probably you don't want to convert CVSROOT: projects.remove('CVSROOT') # 3) Now loop projects and add to conversion list for project in projects: run_options.add_project( cvs_repo_main_dir + '/' + project, trunk_path=(project + '/trunk'), branches_path=(project + '/branches'), tags_path=(project + '/tags'), symbol_strategy_rules=global_symbol_strategy_rules, ) This part is what I think makes cvs2svn scan the top level and create a train of svn commands to stuff those projects into svn with tags and all... And I would like to get this done with some automation also, but for HEAD only... I found an option like this: ctx.trunk_only = False Setting it to True will make the conversion only include TRUNK revisions AFAICT. But I did not find anything like: ctx.head_only = True This option (if it existed) would make the conversion simpler by only considering the HEAD revision of every RCS file. -- Bo Berglund Developer in Sweden