Closed justinpitts closed 11 years ago
You probably shouldn't try to use a remote URL as the SVN_REPO location. You need a full copy of the repository on local disk to convert.
That said, you probably have found a bug. It's difficult for me to diagnose because the repository isn't publicly visible. Try adding a "print entry.changed_paths" at the top of follow_parent_branch() and that will output some information that may be useful.
edit i stink at formatting. using Gist.
Having written subversion-facing tools in the past, I've had difficulties with repository url vs path/to/project.
Here is what I changed:
https://gist.github.com/justinpitts/6556590
here is the output:
===== master
/trunk
/integrations/IBM/Navigator/trunk
Traceback (most recent call last):
File "./agito.py", line 988, in
I think you have the wrong repository path. Perhaps this will work?
SVN_REPO = "http://wolfwood.int.infograph.com:81/svn/igc/"
It may work, but it is overbroad. This path contains a lot of projects. How do I indicate that the path to my project is integrations/IBM/Navigator ?
(FYI you'll need to change the paths in BRANCHES and TAGS in your config file to include the full /integrations/IBM/Navigator/... part)
Understood, but agito should only look at the paths you give in BRANCHES and TAGS - the rest of the repo should be ignored.
Ahh. I'll try.
It started to work.
We have some oddball filenames in our repo - test cases actually for filename handling.
If you prefer, I can file this as a separate issue.
Traceback (most recent call last):
File "./agito.py", line 986, in
Yes, please file a separate bug for that.
I've committed a change that adds a check on startup that SVN_REPO points to the root of the repository. So I believe this bug is at least fixed.
I encounter this error very quickly, on attempting to run the tool. The output looks like: ===== master Traceback (most recent call last): File "./agito.py", line 986, in
head_id = get_history_for_path(path)
File "./agito.py", line 838, in get_history_for_path
commit_id = follow_parent_branch(path, log[-1])
File "./agito.py", line 711, in follow_parent_branch
assert False, "Source of copied parent branch not found."
AssertionError: Source of copied parent branch not found.
My first assumption is that my subversion repo url may be an issue: SVN_REPO = "http://wolfwood.int.infograph.com:81/svn/igc/integrations/IBM/Navigator"