Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F85777
D7619.diff
All Users
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D7619.diff
View Options
diff --git a/src/applications/repository/engine/PhabricatorRepositoryDiscoveryEngine.php b/src/applications/repository/engine/PhabricatorRepositoryDiscoveryEngine.php
--- a/src/applications/repository/engine/PhabricatorRepositoryDiscoveryEngine.php
+++ b/src/applications/repository/engine/PhabricatorRepositoryDiscoveryEngine.php
@@ -88,10 +88,9 @@
try {
list($xml, $stderr) = $repository->execxRemoteCommand(
- 'log --xml --quiet --limit %d %s@%s',
+ 'log --xml --quiet --limit %d %s',
$limit,
- $repository->getSubversionBaseURI(),
- $at_rev);
+ $repository->getSubversionBaseURI($at_rev));
} catch (CommandException $ex) {
$stderr = $ex->getStdErr();
if (preg_match('/(path|File) not found/', $stderr)) {
diff --git a/src/applications/repository/storage/PhabricatorRepository.php b/src/applications/repository/storage/PhabricatorRepository.php
--- a/src/applications/repository/storage/PhabricatorRepository.php
+++ b/src/applications/repository/storage/PhabricatorRepository.php
@@ -155,12 +155,12 @@
return $this->getDetail('local-path');
}
- public function getSubversionBaseURI() {
+ public function getSubversionBaseURI($commit = null) {
$subpath = $this->getDetail('svn-subpath');
if (!strlen($subpath)) {
$subpath = null;
}
- return $this->getSubversionPathURI($subpath);
+ return $this->getSubversionPathURI($subpath, $commit);
}
public function getSubversionPathURI($path = null, $commit = null) {
diff --git a/src/applications/repository/storage/__tests__/PhabricatorRepositoryTestCase.php b/src/applications/repository/storage/__tests__/PhabricatorRepositoryTestCase.php
--- a/src/applications/repository/storage/__tests__/PhabricatorRepositoryTestCase.php
+++ b/src/applications/repository/storage/__tests__/PhabricatorRepositoryTestCase.php
@@ -94,6 +94,17 @@
$this->assertEqual(
'file:///var/repo/SVN/%3F@22',
$repo->getSubversionPathURI('?', 22));
+
+ $repo->setDetail('svn-subpath', 'quack/trunk/');
+
+ $this->assertEqual(
+ 'file:///var/repo/SVN/quack/trunk/@',
+ $repo->getSubversionBaseURI());
+
+ $this->assertEqual(
+ 'file:///var/repo/SVN/quack/trunk/@HEAD',
+ $repo->getSubversionBaseURI('HEAD'));
+
}
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
amazon-s3
Storage Format
Raw Data
Storage Handle
phabricator/kq/sw/3k7ik7rvw5467vox
Default Alt Text
D7619.diff (2 KB)
Attached To
Mode
D7619: Fix an issue with SVN path construction in the presence of subpath configuration
Attached
Detach File
Event Timeline
Log In to Comment