[Frugalware-darcs] vmexam: dg: avoid recording new files if not picked

VMiklos vmiklos at frugalware.org
Wed Jun 13 18:29:11 CEST 2007


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

[dg: avoid recording new files if not picked
VMiklos <vmiklos at frugalware.org>**20070613162718
 in fact we explicitely specify the list of files to record
] {
hunk ./python/dg.py 155
+	flist = []
+	for i in status.hunks:
+		if i.picked:
+			flist.append(re.sub(r".* a/([^ ]+) .*", r"\1", i.text.split("\n")[0]))
hunk ./python/dg.py 183
-	os.system("git commit -m '%s' %s" % (msg, opts))
+	os.system("git commit -m '%s' %s %s" % (msg, opts, " ".join(flist)))
}


More information about the Frugalware-darcs mailing list