# HG changeset patch # User Jeff Hammel # Date 1357853355 28800 # Node ID 3a78de4d900d0f32cb453dce9c386da1acb2cf48 # Parent a75973284ec3bb0f63d23c15716058532c16f8e2 stub method for importing patches diff -r a75973284ec3 -r 3a78de4d900d mozillatry.py --- a/mozillatry.py Thu Jan 10 10:40:14 2013 -0800 +++ b/mozillatry.py Thu Jan 10 13:29:15 2013 -0800 @@ -47,6 +47,13 @@ call(['hg', 'update'], cwd=directory) call(['hg', 'qinit'], cwd=directory) +def apply_patches(directory, *patches): + """apply patches to an hg repository""" + + update_repo(directory) + + for patch in patches: + call(['hg', 'qimport', patch], cwd=directory) ### methods for try