[Frugalware-darcs] vmexam: dg: new subcommand: trackdown

VMiklos vmiklos at frugalware.org
Thu Jun 14 22:12:42 CEST 2007


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

[dg: new subcommand: trackdown
VMiklos <vmiklos at frugalware.org>**20070614194552] {
hunk ./python/dg.py 577
+def trackdown(argv):
+	def usage(ret):
+		print """Usage: darcs-git trackdown [OPTION]...
+Locate the most recent version lacking an error.
+This is an alias for "git bisect".
+
+Options:
+  -h         --help                shows brief description of command and its arguments"""
+		sys.exit(ret)
+	if len(argv) and argv[0] in ("-h", "--help"):
+		usage(0)
+	os.system("git bisect")
+
hunk ./python/dg.py 629
-  FIXME trackdown     Locate the most recent version lacking an error.
+  A trackdown     Locate the most recent version lacking an error.
hunk ./python/dg.py 672
+		elif sys.argv[1][:5] == "track":
+			trackdown(argv[1:])
}


More information about the Frugalware-darcs mailing list