Page Menu
Home
Sealhub
Search
Configure Global Search
Log In
Files
F12656316
ArcanistMercurialWorkEngine.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
ArcanistMercurialWorkEngine.php
View Options
<?php
final
class
ArcanistMercurialWorkEngine
extends
ArcanistWorkEngine
{
protected
function
getDefaultStartSymbol
()
{
$api
=
$this
->
getRepositoryAPI
();
return
$api
->
getWorkingCopyRevision
();
}
protected
function
newMarker
(
$symbol
,
$start
)
{
$api
=
$this
->
getRepositoryAPI
();
$log
=
$this
->
getLogEngine
();
$log
->
writeStatus
(
pht
(
'NEW BOOKMARK'
),
pht
(
'Creating new bookmark "%s" from "%s".'
,
$symbol
,
$start
));
if
(
$start
!==
$this
->
getDefaultStartSymbol
())
{
$future
=
$api
->
newFuture
(
'update -- %s'
,
$start
);
$future
->
resolve
();
}
$future
=
$api
->
newFuture
(
'bookmark %s --'
,
$symbol
);
$future
->
resolve
();
}
protected
function
moveToMarker
(
ArcanistMarkerRef
$marker
)
{
$api
=
$this
->
getRepositoryAPI
();
$log
=
$this
->
getLogEngine
();
if
(
$marker
->
isBookmark
())
{
$log
->
writeStatus
(
pht
(
'BOOKMARK'
),
pht
(
'Checking out bookmark "%s".'
,
$marker
->
getName
()));
}
else
{
$log
->
writeStatus
(
pht
(
'BRANCH'
),
pht
(
'Checking out branch "%s".'
,
$marker
->
getName
()));
}
$future
=
$api
->
newFuture
(
'checkout %s --'
,
$marker
->
getName
());
$future
->
resolve
();
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Fri, Nov 28, 15:10 (1 d, 6 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1075159
Default Alt Text
ArcanistMercurialWorkEngine.php (1 KB)
Attached To
Mode
R118 Arcanist - fork
Attached
Detach File
Event Timeline
Log In to Comment