[Frugalware-darcs] vmexam: dg: new alias: rollback -> revert

VMiklos vmiklos at frugalware.org
Thu Jun 14 02:55:07 CEST 2007


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

[dg: new alias: rollback -> revert
VMiklos <vmiklos at frugalware.org>**20070614002526] {
hunk ./python/dg.py 427
+def rollback(argv):
+	def usage(ret):
+		print """Usage: darcs-git rollback [OPTION]...
+Commit an inverse patch.
+Use "darcs-git help revert" for more information.
+
+Options:
+  -h         --help                shows brief description of command and its arguments"""
+		sys.exit(ret)
+	if argv[0] in ("-h", "--help"):
+		usage(0)
+	else:
+		return os.system("git revert %s" % " ".join(argv))
+
hunk ./python/dg.py 455
+		elif sys.argv[1][:4] == "roll":
+			rollback(argv[1:])
}


More information about the Frugalware-darcs mailing list