Index: tools/push-to-trunk/push_to_trunk.py |
diff --git a/tools/push-to-trunk/push_to_trunk.py b/tools/push-to-trunk/push_to_trunk.py |
index d861009c7695d174dd0d85d88ec55331b48b3eae..06e277ee468c23b02ba2988722ac94657b244999 100755 |
--- a/tools/push-to-trunk/push_to_trunk.py |
+++ b/tools/push-to-trunk/push_to_trunk.py |
@@ -53,6 +53,20 @@ CONFIG = { |
class PushToTrunkOptions(CommonOptions): |
+ @staticmethod |
+ def MakeForcedOptions(reviewer, chrome_path): |
+ """Convenience wrapper.""" |
+ class Options(object): |
+ pass |
+ options = Options() |
+ options.s = 0 |
+ options.l = None |
+ options.f = True |
+ options.m = False |
+ options.r = reviewer |
+ options.c = chrome_path |
+ return PushToTrunkOptions(options) |
+ |
def __init__(self, options): |
super(PushToTrunkOptions, self).__init__(options, options.m) |
self.requires_editor = not options.f |