[Frugalware-darcs] vmexam: dg: rec - handle deleted files

VMiklos vmiklos at frugalware.org
Wed Jun 13 20:23:21 CEST 2007


Darcsweb-Url: http://darcs.frugalware.org/darcsweb/darcsweb.cgi?r=vmexam;a=darcs_commitdiff;h=20070613181741-e2957-1f0222ce2e7a212b08b9bb7b97eca1a315c8343c.gz;

[dg: rec - handle deleted files
VMiklos <vmiklos at frugalware.org>**20070613181741] {
hunk ./python/dg.py 203
-			flist.append(re.sub(r".* a/([^ ]+) .*", r"\1", i.text.split("\n")[0]))
+			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 224
-	os.system("git commit -m '%s' %s %s" % (msg, opts, " ".join(flist)))
+	for i in flist:
+		os.system("git add %s" % i)
+	os.system("git commit -m '%s' %s" % (msg, opts))
}


More information about the Frugalware-darcs mailing list