f = open(fn)
data = f.read()
f.close()
- new = not x.isfile(fn)
+ new = not x.isvalid(fn)
if not new and same(x, copts, fn, data):
print "%s: unchanged since last checkin" % fn
return
f.write(data)
f.close()
+def lock(x, copts, fn):
+ x.lock(fn)
+
+def unlock(x, copts, fn):
+ x.unlock(fn)
+
def info(x, copts, fn):
dict = x.info(fn)
keys = dict.keys()
print fn, head
def list(x, copts, fn):
- if x.isfile(fn):
+ if x.isvalid(fn):
print fn
def log(x, copts, fn):
'info': ('', info),
'head': ('', head),
'list': ('', list),
+ 'lock': ('', lock),
+ 'unlock': ('', unlock),
'log': ('bhLRtd:l:r:s:w:V:', log),
'diff': ('c', diff),
}