Files
OpenRA/tools/perforce_revert.lua
Paul Kulchenko 97d8b30e17 Refactored tools interface to make it easy to add/remove tools.
The tool command (`exec.fn` method) now accepts `filename` as the first
parameter instead of `wx.wxFileName`.
2014-09-23 20:36:57 -07:00

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,
},
}