Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2893180
DiffusionMercurialRawDiffQuery.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
899 B
Referenced Files
None
Subscribers
None
DiffusionMercurialRawDiffQuery.php
View Options
<?php
final
class
DiffusionMercurialRawDiffQuery
extends
DiffusionRawDiffQuery
{
protected
function
newQueryFuture
(
)
{
$drequest
=
$this
->
getRequest
(
)
;
$repository
=
$drequest
->
getRepository
(
)
;
$commit
=
$this
->
getAnchorCommit
(
)
;
// If there's no path, get the entire raw diff.
$path
=
nonempty
(
$drequest
->
getPath
(
)
,
'.'
)
;
$against
=
$this
->
getAgainstCommit
(
)
;
if
(
$against
===
null
)
{
// If `$commit` has no parents (usually because it's the first commit
// in the repository), we want to diff against `null`. This revset will
// do that for us automatically.
$against
=
hgsprintf
(
'(%s^ or null)'
,
$commit
)
;
}
$future
=
$repository
->
getLocalCommandFuture
(
'diff -U %d --git --rev %s --rev %s -- %s'
,
$this
->
getLinesOfContext
(
)
,
$against
,
hgsprintf
(
'%s'
,
$commit
)
,
$path
)
;
return
$future
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jan 19, 18:02 (1 w, 5 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1127211
Default Alt Text
DiffusionMercurialRawDiffQuery.php (899 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment