tahoe-lafs/misc/test-darcs-boringfile.py
2007-05-23 17:51:28 -07:00

15 lines
230 B
Python

#! /usr/bin/python
import sys
from subprocess import Popen, PIPE
cmd = ["darcs", "whatsnew", "-l"]
p = Popen(cmd, stdout=PIPE)
output = p.communicate()[0]
print output
if output == "No changes!\n":
sys.exit(0)
sys.exit(1)