Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F78579780
DiffusionMercurialExpandShortNameQuery.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Aug 21, 18:19
Size
546 B
Mime Type
text/x-php
Expires
Fri, Aug 23, 18:19 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
20066449
Attached To
rPH Phabricator
DiffusionMercurialExpandShortNameQuery.php
View Options
<?php
final
class
DiffusionMercurialExpandShortNameQuery
extends
DiffusionExpandShortNameQuery
{
protected
function
executeQuery
()
{
$repository
=
$this
->
getRepository
();
$commit
=
$this
->
getCommit
();
list
(
$full_hash
)
=
$repository
->
execxLocalCommand
(
'log --template=%s --rev %s'
,
'{node}'
,
$commit
);
$full_hash
=
explode
(
"
\n
"
,
trim
(
$full_hash
));
// TODO: Show "multiple matching commits" if count is larger than 1. For
// now, pick the first one.
$this
->
setCommit
(
head
(
$full_hash
));
}
}
Event Timeline
Log In to Comment