# # # patch "plain.py" # from [449366abd61fb3cfd94d027fb8dfe4a2e90e6412] # to [e20493981c6d73984ac2900ff5eefba37e48f22a] # ============================================================ --- plain.py 449366abd61fb3cfd94d027fb8dfe4a2e90e6412 +++ plain.py e20493981c6d73984ac2900ff5eefba37e48f22a @@ -24,7 +24,7 @@ import sys import monotone import sys -ACTIONS = [ "pull", "push", "sync"] +ACTIONS = [ "pull", "push", "sync", "clone" ] def readConfig(cfgfile): @@ -210,7 +210,9 @@ def main(): mtn.do_push(url, branch_pattern, **optdict) elif action=="sync": mtn.do_sync(url, branch_pattern, **optdict) - + elif action=="clone": + mtn.monotone.ensure_db() + mtn.do_pull(url, branch_pattern, **optdict) saveConfig(options,config) if __name__ == "__main__":