File: modified.lua

package info (click to toggle)
freepops 0.2.7-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 5,464 kB
  • ctags: 2,677
  • sloc: ansic: 16,571; sh: 1,781; makefile: 1,127; cpp: 350
file content (13 lines) | stat: -rwxr-xr-x 277 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
#! /usr/bin/lua

status = "nothing"
curfile = nil
for l in io.lines() do
	f = string.match(l,"^Working file: (.*)")
	curfile = f or curfile
	r = string.match(l,"selected revisions: (%d*)")
	if r ~= nil and tonumber(r) ~= nil and tonumber(r) > 0 then
		print(curfile)
	end
end