Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incomplete insert into DB using standard SVN script #6

Open
areis422 opened this issue Aug 1, 2018 · 2 comments
Open

Incomplete insert into DB using standard SVN script #6

areis422 opened this issue Aug 1, 2018 · 2 comments

Comments

@areis422
Copy link

areis422 commented Aug 1, 2018

When using eventum-svn-hook.php in it's vanilla form, the repository name is not be appended to the filename, so a lookup against websvn or viewvc returns an error.

Ex:
Filename = /trunk/test
Required = /reponame/trunk/test

Also, cof_old_version and cof_new_version are not being populated when committing against Eventum 3.5.2, which is also screwing up the Revision tracking links.

mysql> select * from commit_file order by cof_id desc limit 5

+--------+------------+----------------------+-----------+--------------+-------------+-----------------+-----------------+
| cof_id | cof_com_id | cof_filename         | cof_added | cof_modified | cof_removed | cof_old_version | cof_new_version |
+--------+------------+----------------------+-----------+--------------+-------------+-----------------+-----------------+
|  23517 |      23765 | eventum3/trunk/test3 |         0 |            1 |           0 | NULL            | NULL            |
|  23516 |      23764 | eventum3/trunk/test2 |         0 |            0 |           1 | NULL            | NULL            |
|  23515 |      23763 | trunk/test4          |         0 |            0 |           1 | NULL            | NULL            |
|  23514 |      23762 | trunk/test5          |         0 |            0 |           1 | NULL            | NULL            |
|  23513 |      23761 | trunk/test6          |         0 |            0 |           1 | NULL            | NULL            |
+--------+------------+----------------------+-----------+--------------+-------------+-----------------+-----------------+

Subversion Server 1.10.0 r1827917 running via Apache2/dav_sav
Subversion Client 1.10.2 r1835932

@glensc
Copy link
Member

glensc commented Aug 2, 2018

not enought information how to reproduce this, so patches (as pull requests) are welcome.

the current implementation was used for svn and trac as web interface (by me).

@areis422
Copy link
Author

areis422 commented Aug 2, 2018

  1. Create project in SVN, in our case, rooted in /var/svn
  2. Set up apache to use dav_svn against /var/svn
  3. Set up ViewVC to use /var/svn as root and run in apache via WSGI
  4. Create a commit in SVN
  5. Use generic SVN hook as described in this repository
  6. Lookup commit_file table, in example, cof_id 23513, 23514, 23515 are what were inserted into the database

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants