Changeset View
Changeset View
Standalone View
Standalone View
src/workingcopy/ArcanistMercurialWorkingCopy.php
| <?php | <?php | ||||
| final class ArcanistMercurialWorkingCopy | final class ArcanistMercurialWorkingCopy | ||||
| extends ArcanistWorkingCopy { | extends ArcanistWorkingCopy { | ||||
| public function getMetadataDirectory() { | public function getMetadataDirectory() { | ||||
| return $this->getPath('.hg'); | return $this->getPath('.hg'); | ||||
| } | } | ||||
| protected function newWorkingCopyFromDirectories( | protected function newWorkingCopyFromDirectories( | ||||
| $working_directory, | $working_directory, | ||||
| $ancestor_directory) { | $ancestor_directory) { | ||||
| if (!Filesystem::pathExits($ancestor_directory.'/.hg')) { | if (!Filesystem::pathExists($ancestor_directory.'/.hg')) { | ||||
| return null; | return null; | ||||
| } | } | ||||
| return new self(); | return new self(); | ||||
| } | } | ||||
| } | } | ||||