4everGhost / phpsvnclient

Automatically exported from code.google.com/p/phpsvnclient
0 stars 0 forks source link

Version number not reset when changing repository URL #17

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

Given the following code:
    $svn = new PL_SvnClient();
    $svn->setAuth($username, $password);
    $svn->setRepository($some_repository);
    $ver = $svn->getVersion();

The version number will always be the same as the version of the phpsvnclient 
repository.

Proposed solution (ALL of these):
1. The default value for the first parameter to the constructor should be null.
2. Set _repVersion and actVersion to null (or 0) when in setRepository()
3. Don't use _repVersion or actVersion directly. Use a wrapper that will 
refresh them if they are not set yet.

Original issue reported on code.google.com by JohnCren...@gmail.com on 28 Jul 2011 at 10:18

GoogleCodeExporter commented 8 years ago

Original comment by forpdfse...@gmail.com on 3 Aug 2011 at 6:13

GoogleCodeExporter commented 8 years ago

Original comment by forpdfse...@gmail.com on 3 Aug 2011 at 6:14

GoogleCodeExporter commented 8 years ago

Original comment by forpdfse...@gmail.com on 5 Aug 2011 at 10:00

GoogleCodeExporter commented 8 years ago
Fixed in the r127.

Original comment by forpdfse...@gmail.com on 6 Aug 2011 at 7:36