Mercurial > mozilla > hg > MozillaTry
comparison 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 |
comparison
equal
deleted
inserted
replaced
42:a75973284ec3 | 43:3a78de4d900d |
---|---|
45 reset(directory) | 45 reset(directory) |
46 call(['hg', 'pull'], cwd=directory) | 46 call(['hg', 'pull'], cwd=directory) |
47 call(['hg', 'update'], cwd=directory) | 47 call(['hg', 'update'], cwd=directory) |
48 call(['hg', 'qinit'], cwd=directory) | 48 call(['hg', 'qinit'], cwd=directory) |
49 | 49 |
50 def apply_patches(directory, *patches): | |
51 """apply patches to an hg repository""" | |
52 | |
53 update_repo(directory) | |
54 | |
55 for patch in patches: | |
56 call(['hg', 'qimport', patch], cwd=directory) | |
50 | 57 |
51 ### methods for try | 58 ### methods for try |
52 | 59 |
53 def push_to_try(patches, repo, commit, _try='ssh://hg.mozilla.org/try/', update=True): | 60 def push_to_try(patches, repo, commit, _try='ssh://hg.mozilla.org/try/', update=True): |
54 """push a series of patches to try repository""" | 61 """push a series of patches to try repository""" |