git/list[1] front-page[2] threads[3] people[4] search[5] about
 

cvs2git with modules?

From
KHKelly F. Hickel <kfh@mqsoftware.com>
Date
Jun 17, 2008, 11:21 UTC
Message-ID
<63BEA5E623E09F4D92233FB12A9F794302389A59@emailmn.mqsoftware.com>
Hi All,
	I'm trying to use cvs2svn in cvs2git mode to convert a repo with a number of modules.  
Can anyone tell me how to keep that module structure in the new git repo?  So, if in cvs there are two modules, 
ModA and ModB, I want to see those two as top level directories in the git repo.
I've tried putting adding the projects in my options file as below, but it puts the files ModA/* and ModB/* at the top level in the git repo.
run_options.add_project(
    r'/home/foo/cvsrepo/ModA,
    trunk_path=ModA',
    symbol_transforms=[
        ReplaceSubstringsSymbolTransform('\\','/'),
        NormalizePathsSymbolTransform(),
        ],
    symbol_strategy_rules=[
        UnambiguousUsageRule(),
        BranchIfCommitsRule(),
        HeuristicStrategyRule(),
        HeuristicPreferredParentRule(),
        ],
    )
run_options.add_project(
    r'/home/foo/cvsrepo/ModB,
    trunk_path=ModB',
    symbol_transforms=[
        ReplaceSubstringsSymbolTransform('\\','/'),
        NormalizePathsSymbolTransform(),
        ],
    symbol_strategy_rules=[
        UnambiguousUsageRule(),
        BranchIfCommitsRule(),
        HeuristicStrategyRule(),
        HeuristicPreferredParentRule(),
        ],
    )
-- 
 
Kelly F. Hickel
Senior Software Architect
MQSoftware, Inc
952.345.8677
kfh@mqsoftware.com
Next: Michael Haggerty
Message 1 of 4 in “cvs2git with modules?”
  1. Kelly F. HickelJun 17, 2008
  2. Michael HaggertyJun 17, 2008
  3. Geoffrey IrvingJun 17, 2008
  4. Geoffrey IrvingJun 17, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.