Nicht angemeldeter Benutzer - Bearbeiten von Seiten ist nur als angemeldeter Benutzer möglich.
Änderungen
Zur Navigation springen
Zur Suche springen
Zeile 1:
Zeile 1:
− +
Zeile 426:
Zeile 426:
− +
− +
− shortcut, state )+
+
+
+
+
+
+
+
+
Zeile 444:
Zeile 452:
− +
+
+
+
+
+
+
+
+
+
+
+
Zeile 530:
Zeile 549:
− +
− { "commit", "commitdiff", "dir", "file", "plain" } )+
+
+
+
+
+
Zeile 563:
Zeile 587:
− r = false
− load = ( args.commit or args.commitdiff )
− +
+
+
+
+
+
+
+
+
+
+
+
+
+
Zeile 572:
Zeile 607:
− else +
− source = args[ swift ]+
− if last then
− swift = "history"
− end
Zeile 587:
Zeile 619:
− +
+
+
Zeile 605:
Zeile 639:
+
+
Modul:Vorlage:Phab (Quelltext anzeigen)
Version vom 19. April 2015, 16:54 Uhr
, 16:54, 19. Apr. 20152015-04-19
--[=[ 2015-04-05
--[=[ 2015-04-19
{{Template:Phab}}
{{Template:Phab}}
]=]
]=]
if action == "commit" or
if action == "commit" or
action == "commitdiff" then
action == "commitdiff" then
swift = action
if attach then
sub = string.format( "r%s%s",
if action == "commit" then
swift = "browse"
else
swift = "change"
end
state = "master"
else
sub = string.format( "r%s%s",
shortcut, state )
end
elseif action == "history" then
elseif action == "history" then
swift = action
swift = action
end
end
if state then
if state then
sub = string.format( "%s/%s", sub, state )
local sep
if state == "master" then
sep = "/"
else
sep = ""
end
sub = string.format( "%s%s%s", sub, sep, state )
end
end
if attach then
if attach then
sub = string.format( "%s/%s", sub, attach )
sub = string.format( "%s/%s", sub, attach )
if adopt
and state ~= "HEAD"
and state ~= adopt then
sub = string.format( "%s;%s", sub, adopt )
end
if anchor then
if anchor then
sub = string.format( "%s$%s", sub, anchor )
sub = string.format( "%s$%s", sub, anchor )
slot = args[ r ]
slot = args[ r ]
end
end
r = lonely( args,
r = lonely( args, { "dir", "file", "plain" } )
if r then
swift = r
source = args[ swift ]
end
r = lonely( args, { "commit", "commitdiff" } )
if r then
if r then
swift = r
swift = r
load = true
end
end
if args.history then
if args.history then
end
end
end
end
if load then
if load then
if scope ~= "SVN" then
if scope == "SVN" then
r = "Invalid SVN identifier: "
if slot:match( "^[0-9]+$" ) then
slot = tonumber( slot )
if slot >= 1 and slot <= 115794 then
r = false
end
slot = string.format( "%d", slot )
end
if r then
local e = r .. slot
error( e, 0 )
end
else
id40( slot )
id40( slot )
end
end
since = args.diff
since = args.diff
id40( since )
id40( since )
elseif last then
swift = "history"
end
end
r, show = phabDiffusion( swift, scope, slot, source, jump, since,
r, show = phabDiffusion( swift, scope, slot, source, jump, since,
show = source
show = source
if args.diff then
if args.diff then
show = show .. " ./." .. since:sub( 1, 7 )
show = string.format( "%s ./.%s", show, since:sub( 1, 7 ) )
elseif load then
show = string.format( "%s;%s", show, slot:sub( 1, 7 ) )
end
end
elseif load then
elseif load then
error( "Unknown project: " .. scope, 0 )
error( "Unknown project: " .. scope, 0 )
end
end
lonely( args,
{ "commit", "commitdiff", "dir", "file", "plain" } )
r = git( swift, scope, slot, source, jump, since )
r = git( swift, scope, slot, source, jump, since )
r = string.format( "[%s %s]", r, show )
r = string.format( "[%s %s]", r, show )