diff mozillatry.py @ 43:3a78de4d900d

stub method for importing patches
author Jeff Hammel <jhammel@mozilla.com>
date Thu, 10 Jan 2013 13:29:15 -0800
parents efb29cff39a7
children 6d130b5ddd33
line wrap: on
line diff
--- 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