[Frugalware-darcs] vmexam: dg: some cleanup

VMiklos vmiklos at frugalware.org
Wed Jun 13 21:03:41 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=vmexam;a=darcs_commitdiff;h=20070613190141-e2957-0ae407509bc39d029932a1803d3e98f9ec214aa1.gz;

[dg: some cleanup
VMiklos <vmiklos at frugalware.org>**20070613190141
 these were workarounds which are no longer needed
] {
hunk ./python/dg.py 6
-	def __init__(self, filename):
-		if not filename:
-			bug("filename can't be None!")
-		self.filename = filename
+	def __init__(self):
hunk ./python/dg.py 71
-			file = File(re.sub(r".* a/([^ ]+) .*\n", r"\1", i))
+			file = File()
hunk ./python/dg.py 82
-				filename = None
hunk ./python/dg.py 205
-	flist = []
-	for i in status.hunks:
-		if i.picked:
-			lines = i.text.split("\n")
-			if "+++ /dev/null" not in lines:
-				flist.append(re.sub(r".* a/([^ ]+) .*", r"\1", lines[0]))
hunk ./python/dg.py 223
-	for i in flist:
-		os.system("git add %s" % i)
}


More information about the Frugalware-darcs mailing list