aboutsummaryrefslogtreecommitdiffstats
path: root/tools
AgeCommit message (Collapse)Author
2017-11-06tools/post-receive.hook: add old releases to STATE_MAPJose Lamego
patches that are targeted to previous releases (other than master) are not tracked in patchwork. This change allows tracking older releases by adding morty, pyro and rocko branches to patchwork's STATE_MAP, so appropriate patch status can be assigned. [YOCTO #10716] Signed-off-by: Jose Lamego <jose.a.lamego@linux.intel.com>
2017-06-28post-receive.hook: skip patches in Accepted stateJose Lamego
Periodic master-next branch updates can modify state in patchwork for patches that are already in Accepted state, missleading users about the actual patch integration status. This change validates the current state of the patch to skip the change if it is Accepted. Signed-off-by: Jose Lamego <jose.a.lamego@linux.intel.com>
2017-06-16tools/post-receive.hook: use git work directoryJose Lamego
post-receive hook may not found merged commits when called from git repositories located in directories outside from current location. This change includes the git working directory as input parameter and executing git commands at the directory where the git push was originated. Also, output is logged to a file instead of display. [YOCTO #10715] Signed-off-by: Jose Lamego <jose.a.lamego@linux.intel.com>
2017-02-23post-receive_async: Asynchronously update merged patchesJose Lamego
This Git post-receive hook asynchronously updates Patchwork patches to "Accepted " state after Git pushes to master branch Signed-off-by: Jose Lamego <jose.a.lamego@linux.intel.com>
2016-05-03post-receive.hook: rename detectionJan Remmet
patches which descripes renamed files show different hashes with git show and pwclient. Use git show -C (Detect copies as well as renames.) Signed-off-by: Jan Remmet <j.remmet@phytec.de> Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2015-11-19run-devel: Listen on all addresses, not just localhostDamien Lespiau
Belen reported that the "quick start" for developers didn't work for her. That was because the test instance was running on a different machine than her main machine. We should totally allow that by not binding the HTTP server to 127.0.0.1 only. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2015-11-10tools: Remove bashisms from the quick start devel scriptsDamien Lespiau
Michael Ellerman noticed we weren't using shebangs in those scripts. I shrugged it off too quickly in the review, because it worked after all. Turned out to be a bashmism, along with the usage of 'source'. With those fixed, we have a better chance to run on most shells (famous last words). Tested it with bash and dash. Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
2015-11-08Add setup-devel script for fast development patchwork configGabriel Ciubotaru
Signed-off-by: Gabriel Ciubotaru <gabriel.ciubotaru@intel.com>
2015-05-27Move to a more recent django project structureJeremy Kerr
This change updates patchwor to the newer project struture: we've moved the actual application out of the apps/ directory, and the patchwork-specific templates to under the patchwork application. This gives us the manage.py script in the top-level now. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2014-07-24post-receive: exclude commits from the patch update stepBrian Norris
When merging upstream work related to other projects into your own project repository, you probably don't want to check for (and try to update) the status on every change-set in the merge. So add a list of references (branches, tags, commits, etc.) whose commits should be ignored in the patch update step. This could be used, for example, to set: EXCLUDE="refs/heads/upstream" Then when you're ready to merge in new upstream code, you first update the 'upstream' branch before pushing your own. Signed-off-by: Brian Norris <computersforpeace@gmail.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2014-01-29post-receive: Fix error message when pushing to an unmapped branchCarl Worth
Previously, if STATE_MAP contained only refs/heads/master and a user pushed to a branch such as refs/heads/stable, the hook emitted a misleading error message: E: no mapping for refname refs/heads/master Fix this by correctly printing the reference being looked for, rather than the reference most recently found in STATE_MAP. Also, reword the message slightly to point the user to STATE_MAP and to use an actual word "branch" instead of the non-word "refname". Signed-off-by: Carl Worth <cworth@cworth.org> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2014-01-29Make the post-receive hook more efficient (using pwclient info, not view)Carl Worth
Older versions of patchwork shipped with a version of pwclient that had the view command, but not info command. Now that info exists, it's inefficient to use it to obtain the patchwork ID value, (since it requires the server to send the entire patch content in response to an XML RPC request). So be kind to the server by using info instead, (which has a small, fixed-length response). Signed-off-by: Carl Worth <cworth@cworth.org> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2014-01-29tools/post-receive.hook: don't update the previously pushed commitCarl Worth
Previously, the post-receive hook would always examine one commit that had been previously pushed, (when the purpose of the hook is only to example newly-pushed commits). We fix this by simply dropping the '^' in the commit-range specification. Signed-off-by: Carl Worth <cworth@cworth.org> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2011-03-30patchwork-update-commits: add missing `update` to command linePaul Menzel
Otherwise the following error is shown: Too many arguments specified Signed-off-by: Paul Menzel <paulepanter@users.sourceforge.net> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2011-02-28patchwork-update-commits: autodetect patchwork install directorySascha Silbe
Make patchwork-update-commits work from outside the Patchwork git repository so it can be used for other projects. Signed-off-by: Sascha Silbe <sascha-pgp@silbe.org> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2010-08-10tools: add simple patchwork-update-commits scriptJeremy Kerr
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2010-08-10tools: Update license for post-receive hook.Jeremy Kerr
Martin has allowed distribution under the GPL. http://lists.ozlabs.org/pipermail/patchwork/2010-June/000263.html Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2010-08-10tools: Add a simple sample Git post-receive hookMartin Krafft
This patch adds a post-receive hook to lib/git, which can be used to update Patchwork following a push to the Git repository. Surely, it can be improved. One thing to do would be to export the state map to git-config somehow. Signed-off-by: martin f. krafft <madduck@madduck.net> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>