[Codestriker-user] Re: full file view for subversion
Brought to you by:
sits
From: Jason R. <jre...@ya...> - 2004-10-25 02:15:13
|
Hi, The quickest way would be to hack into the lib/Codestriker/Repository/Subversion.pm to to add the username and password command line arguments. cat: Output the content of specified files or URLs. usage: cat TARGET... Valid options: -r [--revision] arg : ARG (some commands also take ARG1:ARG2 range) A revision argument can be one of: NUMBER revision number "{" DATE "}" revision at start of the date "HEAD" latest in repository "BASE" base rev of item's working copy "COMMITTED" last commit at or before BASE "PREV" revision just before COMMITTED --username arg : specify a username ARG --password arg : specify a password ARG --no-auth-cache : do not cache authentication tokens --non-interactive : do no interactive prompting --config-dir arg : read user configuration files from directory ARG Also, we are missing the --non-interactive flag on the svn cat command. This is a bug. Another way of dealing with this is to use the subversion authentication cache in ~/.subversion/auth/. Log into the web server, su into the user that apache is running under, then issue a svn cat command into your repository. Use the username switch and type in your password. It will get cached, and subversion will work. However, this will probably not work if the user account is not a real user on the computer (i.e. it has a home directory). Otherwise, you should hack the Codestriker code to add the username and password that you want. Unfortinally, it would be a lot of work to get Codestriker to ask the user for there user name, and password rather than just using the same username and password for subversion. A more longer term solution would be to turn the @valid_repositories list into of hashes, that can have the user name and password specified from the .conf file. Thanks Jason. __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com |