[Svnmerge] KeyError on svnmerge.py

Raman Gupta rocketraman at fastmail.fm
Wed Mar 5 07:46:38 PST 2008


Hernán Martínez Foffani wrote:
> I've just updated my local copy of svnmerge.py from Tigris' repository
> and now every command I issue fires a KeyError exception.
> 
> Surely I'm missing something obvious here but googling the error haven't
> brought any useful information, as lots of the entries are the source
> code by itself.
> 
> D:\XXX>svnmerge.py init
> Traceback (most recent call last):
>   File "D:\APPS\Tools\svnmerge.py", line 2152, in ?
>     main(sys.argv[1:])
>   File "D:\APPS\Tools\svnmerge.py", line 2088, in main
>     cf_source, cf_rev, copy_committed_in_rev = get_copyfrom(branch_dir)
>   File "D:\APPS\Tools\svnmerge.py", line 895, in get_copyfrom
>     repos_path = target_to_pathid(target)
>   File "D:\APPS\Tools\svnmerge.py", line 840, in target_to_pathid
>     root = get_repo_root(target)
>   File "D:\APPS\Tools\svnmerge.py", line 817, in get_repo_root
>     root = info["Repository Root"]
> KeyError: 'Repository Root'
> 
> D:\XXX>

The error seems to indicate that "Repository Root" was not part of the
svn info output. Can you run svn info manually in the location where
you executed svnmerge.py init and post the output?

> By the way, what's svnmerge-migrate-history.py for?
> Is it related to subversion's merge tracking in version 1.5?

Yes, it is to migrate from svnmerge.py to svn 1.5+ merge history.

Cheers,
Raman Gupta



More information about the Svnmerge mailing list