File: modified.lua

package info (click to toggle)
freepops 0.2.9-4.2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 6,284 kB
  • ctags: 2,684
  • sloc: ansic: 16,605; sh: 1,797; makefile: 1,369; cpp: 353
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