Repository browsing does not work

HomeForumsiF.SVNAdminRepository browsing does not work

This topic has 2 voices, contains 6 replies, and was last updated by  pavel cernocky 110 days ago.

Viewing 7 posts - 1 through 7 (of 7 total)
Author Posts
Author Posts
January 12, 2012 at 11:29 pm #616

pavel cernocky

Hi,
I don’t see anything in any repository in SVNAdmin Repository browsing. Running on Linux.

I have found page possibly describing this issue:
http://www.insanefactory.com/2011/03/work-on-svnadmin-continues/
so I passed the –config-dir param to svn (by making script: /usr/bin/svn –config-dir /var/www/svnadmin/test/.subversion $*) and pointing SVNAdmin to this script.
It seems to work (the .subversion dir gets filled with some stuff), but repositories are still empty.

Also if I try to create repository with predefined structure, the repo is created, but always empty. Maybe these 2 issue are connected.

I would be very thankful for any help.

January 16, 2012 at 8:07 pm #617

Manuel Freiholz

Hi Pavel,

did you check your /var/log/apache/error.log file for errors?

January 27, 2012 at 4:30 pm #634

pavel cernocky

There was nothing in any repository because I specified relative path to repository parent dir. It must be absolute.

The problem with not creating predefined structure is in IF_SVNClientC.class.php in following line:
function svn_mkdir($path, $parents=true, $commitMessage="Created folder.")

The commitMessage is not properly escaped and the space causes svn command to fail.
I replaced it with $commitMessage=”mkdir” and now it’s working.

January 27, 2012 at 4:35 pm #635

Manuel Freiholz

Hi Pavel,
yes the path must be absolute. I should write this to the settings page (basicly all paths should be absolute).

I never got the error with “svn_mkdir”. May i ask you which Linux or Windows system do you use for it?

Manuel

January 27, 2012 at 4:50 pm #636

pavel cernocky

I had this problem on Ubuntu server and CentOS. I think this mechanism can cause similar problems when invoking commands from other places in code.

I’ve noticed that creating directory structure makes 3 commits. It is possible to run ‘svn mkdir’ with more directories at once which takes only one commit.

And one problem in GUI: the Filter in Access-Paths -> List does not work.

Anyway thanks for this program. The GUI is nice and does the work and I hope these glitches will disappear at some time.
There are some alternatives for windows, but for linux there are less choices..

January 27, 2012 at 5:03 pm #637

Manuel Freiholz

Thanks for the information, i will test the cases.

[...] makes 3 commits [...]

Well yes. The way to only produce one revision would be to create a local working copy with the three directories and commit the WC. Actually i will not change the way how it is handled. There are bigger things to do than “2 extra revisions” ;-) .

[...] And one problem in GUI: the Filter in Access-Paths -> List does not work.[...]

Yes thats a known bug which is already fixed in the development trunk. The “templates/script.js” contains the fix. “Maybe” you can fix it by copying the functions “filterDataTable(…)” and “getVisibleTextFromElement(…)” from the file and paste them in yours.

Development trunk: https://github.com/mfreiholz/iF.SVNAdmin

Manuel.

January 31, 2012 at 12:34 pm #644

pavel cernocky

OK, I figured up what was the problem with svn_mkdir.
I had to pass the –config-dir option to svn and I used simple script which passed all arguments, but without proper quoting.
The script should look like this (instead what I wrote earlier):
/usr/bin/svn –config-dir /var/www/svnadmin/test/.subversion "$@"

It would be nice to have an option to specify the –config-dir param or any additional params to pass to svn and svnadmin commands.

3 commits for trunk, branches, tags:
Actualy you can do it without creating WC. As I wrote before, you can pass more directories to svn mkdir like this:
svn mkdir file:///repo/tags file:///repo/branches file:///repo/trunk

Thanks for the js fix.

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.