The tool command (`exec.fn` method) now accepts `filename` as the first parameter instead of `wx.wxFileName`.
15 lines
335 B
Lua
15 lines
335 B
Lua
-- authors: Luxinia Dev (Eike Decker & Christoph Kubisch)
|
|
---------------------------------------------------------
|
|
|
|
return {
|
|
exec = {
|
|
name = "Perforce revert",
|
|
description = "does p4 revert",
|
|
fn = function(fname,projectdir)
|
|
local cmd = 'p4 revert "'..fname..'"'
|
|
|
|
CommandLineRun(cmd,nil,true)
|
|
end,
|
|
},
|
|
}
|