[Frugalware-darcs] vmexam: dg: fix revert for deleted files

VMiklos vmiklos at frugalware.org
Wed Jun 13 22:41:11 CEST 2007


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

[dg: fix revert for deleted files
VMiklos <vmiklos at frugalware.org>**20070613203834] {
hunk ./python/dg.py 315
+	# we need git reset too if we revert deleted files
+	for i in status.hunks:
+		lines = i.text.split("\n")
+		if "+++ /dev/null" in lines:
+			os.system("git reset HEAD %s >/dev/null" % diff2filename(lines[0]))
}


More information about the Frugalware-darcs mailing list