[ovs-dev] [PATCH] docs: Add references to git-pw
Now that Patchwork 2.0 is out, folks can start to take advantage of some of the new features that it offers. Chief among these is series support, which is only exposed via the web UI and new REST API and which, in turn, necessitates using git-pw rather than pwclient. As such, this tool is slightly documented. Signed-off-by: Stephen Finucane --- PS: I still plan to get back to converting the man pages to rST, but have been sidetracked by other projects/work. Eventually! :) --- Documentation/internals/patchwork.rst | 34 ++ 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/Documentation/internals/patchwork.rst b/Documentation/internals/patchwork.rst index 3ae0d9503..07b233bd3 100644 --- a/Documentation/internals/patchwork.rst +++ b/Documentation/internals/patchwork.rst @@ -29,33 +29,51 @@ Patchwork Open vSwitch uses `Patchwork`__ to track the status of patches sent to the :doc:`ovs-dev mailing list `. The Open vSwitch Patchwork -instance can be found on `ozlabs.org`__. The ``pwclientrc`` file, required for -*pwclient*, can be found on the `project page`__ +instance can be found on `ozlabs.org`__. Patchwork provides a number of useful features for developers working on Open vSwitch: - Tracking the lifecycle of patches (accepted, rejected, under-review, ...) - Assigning reviewers (delegates) to patches -- Downloading/applying patches via the web UI or the XML-RPC API (see - :ref:`pwclient`) +- Downloading/applying patches, series, and bundles via the web UI, REST API + (see :ref:`git-pw`), or the legacy XML-RPC API (see :ref:`pwclient`) - A usable UI for viewing patch discussions __ https://github.com/getpatchwork/patchwork __ https://patchwork.ozlabs.org/project/openvswitch/list/ -__ https://patchwork.ozlabs.org/project/openvswitch/ + +.. _git-pw: + +git-pw +-- + +The *git-pw* tool provides a way to download and apply patches, series, and +bundles. You can install *git-pw* from `PyPi`__ like so:: + +$ pip install --user git-pw + +Once installed, run:: + +$ git pw --help + +to get more information about the functionality *git-pw* provides. + +__ https://pypi.python.org/pypi/git-pw .. _pwclient: pwclient -The *pwclient* tool provides an way to download and apply patches, change the +The *pwclient* tool provides a way to download and apply patches, change the state of patches in Patchwork, and more. You can download *pwclient* from -`here`__. Once downloaded, run:: +`here`__. You will also need a ``pwclientrc`` file, which can be found on the +`Open vSwitch project page`__. Once both files are downloaded, run:: $ pwclient help -to get more information about the functionality pwclient provides. +to get more information about the functionality *pwclient* provides. __ https://patchwork.ozlabs.org/pwclient/ +__ https://patchwork.ozlabs.org/project/openvswitch/ -- 2.13.5 ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev
Re: [ovs-dev] [PATCH] docs: Add references to git-pw
On 29 August 2017 at 02:54, Stephen Finucane wrote: > Now that Patchwork 2.0 is out, folks can start to take advantage of some > of the new features that it offers. Chief among these is series support, > which is only exposed via the web UI and new REST API and which, in > turn, necessitates using git-pw rather than pwclient. As such, this tool > is slightly documented. > > Signed-off-by: Stephen Finucane > --- > PS: I still plan to get back to converting the man pages to rST, but > have been sidetracked by other projects/work. Eventually! :) > --- > Documentation/internals/patchwork.rst | 34 ++ > 1 file changed, 26 insertions(+), 8 deletions(-) > > diff --git a/Documentation/internals/patchwork.rst > b/Documentation/internals/patchwork.rst > index 3ae0d9503..07b233bd3 100644 > --- a/Documentation/internals/patchwork.rst > +++ b/Documentation/internals/patchwork.rst > @@ -29,33 +29,51 @@ Patchwork > > Open vSwitch uses `Patchwork`__ to track the status of patches sent to the > :doc:`ovs-dev mailing list `. The Open vSwitch Patchwork > -instance can be found on `ozlabs.org`__. The ``pwclientrc`` file, required > for > -*pwclient*, can be found on the `project page`__ > +instance can be found on `ozlabs.org`__. > > Patchwork provides a number of useful features for developers working on Open > vSwitch: > > - Tracking the lifecycle of patches (accepted, rejected, under-review, ...) > - Assigning reviewers (delegates) to patches > -- Downloading/applying patches via the web UI or the XML-RPC API (see > - :ref:`pwclient`) > +- Downloading/applying patches, series, and bundles via the web UI, REST API > + (see :ref:`git-pw`), or the legacy XML-RPC API (see :ref:`pwclient`) > - A usable UI for viewing patch discussions > > __ https://github.com/getpatchwork/patchwork > __ https://patchwork.ozlabs.org/project/openvswitch/list/ > -__ https://patchwork.ozlabs.org/project/openvswitch/ > + > +.. _git-pw: > + > +git-pw > +-- > + > +The *git-pw* tool provides a way to download and apply patches, series, and > +bundles. You can install *git-pw* from `PyPi`__ like so:: > + > +$ pip install --user git-pw > + > +Once installed, run:: > + > +$ git pw --help > + > +to get more information about the functionality *git-pw* provides. > + > +__ https://pypi.python.org/pypi/git-pw Perhaps we could document what config the user needs to set up for this to work? Eg: $ git config pw.server https://patchwork.ozlabs.org/ I'd also like to filter to relevant patches: $ git config pw.project openvswitch However, it seems like this is broken right now. (git-pw patch list returns empty list if I have project configured) > > .. _pwclient: > > pwclient > I was going to ask if we still need pwclient documentation, but I guess if git-pw is super new and working through some bugs then we should probably keep it around a while. ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev
Re: [ovs-dev] [PATCH] docs: Add references to git-pw
On Wed, 2017-08-30 at 10:38 -0700, Joe Stringer wrote: > On 29 August 2017 at 02:54, Stephen Finucane wrote: > > Now that Patchwork 2.0 is out, folks can start to take advantage of some > > of the new features that it offers. Chief among these is series support, > > which is only exposed via the web UI and new REST API and which, in > > turn, necessitates using git-pw rather than pwclient. As such, this tool > > is slightly documented. > > > > Signed-off-by: Stephen Finucane > > --- > > PS: I still plan to get back to converting the man pages to rST, but > > have been sidetracked by other projects/work. Eventually! :) > > --- > > Documentation/internals/patchwork.rst | 34 ++- > > --- > > 1 file changed, 26 insertions(+), 8 deletions(-) > > > > diff --git a/Documentation/internals/patchwork.rst > > b/Documentation/internals/patchwork.rst > > index 3ae0d9503..07b233bd3 100644 > > --- a/Documentation/internals/patchwork.rst > > +++ b/Documentation/internals/patchwork.rst > > @@ -29,33 +29,51 @@ Patchwork > > > > Open vSwitch uses `Patchwork`__ to track the status of patches sent to the > > :doc:`ovs-dev mailing list `. The Open vSwitch Patchwork > > -instance can be found on `ozlabs.org`__. The ``pwclientrc`` file, required > > for > > -*pwclient*, can be found on the `project page`__ > > +instance can be found on `ozlabs.org`__. > > > > Patchwork provides a number of useful features for developers working on > > Open > > vSwitch: > > > > - Tracking the lifecycle of patches (accepted, rejected, under-review, > > ...) > > - Assigning reviewers (delegates) to patches > > -- Downloading/applying patches via the web UI or the XML-RPC API (see > > - :ref:`pwclient`) > > +- Downloading/applying patches, series, and bundles via the web UI, REST > > API > > + (see :ref:`git-pw`), or the legacy XML-RPC API (see :ref:`pwclient`) > > - A usable UI for viewing patch discussions > > > > __ https://github.com/getpatchwork/patchwork > > __ https://patchwork.ozlabs.org/project/openvswitch/list/ > > -__ https://patchwork.ozlabs.org/project/openvswitch/ > > + > > +.. _git-pw: > > + > > +git-pw > > +-- > > + > > +The *git-pw* tool provides a way to download and apply patches, series, > > and > > +bundles. You can install *git-pw* from `PyPi`__ like so:: > > + > > +$ pip install --user git-pw > > + > > +Once installed, run:: > > + > > +$ git pw --help > > + > > +to get more information about the functionality *git-pw* provides. > > + > > +__ https://pypi.python.org/pypi/git-pw > > Perhaps we could document what config the user needs to set up for this to > work? > > Eg: > > $ git config pw.server https://patchwork.ozlabs.org/ Good call. I'll add this now in a v2. > I'd also like to filter to relevant patches: > > $ git config pw.project openvswitch Also good. I plan to make this a required option in v1.1, as displaying all patches when using an instance as large as the ozlabs.org one is not all that helpful. > However, it seems like this is broken right now. (git-pw patch list > returns empty list if I have project configured) Eek. So that's a bug with Patchwork, not git-pw. I've posted the patch [1] and it should be there before the end of the week. Good catch. > > > > .. _pwclient: > > > > pwclient > > > > > > I was going to ask if we still need pwclient documentation, but I > guess if git-pw is super new and working through some bugs then we > should probably keep it around a while. Actually, I'd be OK to drop it now. I've been using git-pw as my daily tool for a few months now (though only against projects where name ~= linkname, apparently) without issue. I'll drop it, with a note, in v2. Thanks for the review, Joe :) Stephen [1] https://patchwork.ozlabs.org/patch/808139/ ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev
Re: [ovs-dev] [PATCH] docs: Add references to git-pw
On Thu, 2017-08-31 at 09:59 +0100, Stephen Finucane wrote: > On Wed, 2017-08-30 at 10:38 -0700, Joe Stringer wrote: > > On 29 August 2017 at 02:54, Stephen Finucane wrote: [snip] > > However, it seems like this is broken right now. (git-pw patch list > > returns empty list if I have project configured) > > Eek. So that's a bug with Patchwork, not git-pw. I've posted the patch [1] > and it should be there before the end of the week. Good catch. If you did want to play with this rn, using the project name (as opposed to the linkname) will let you do so: git config pw.project 'open vswitch' Stephen ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev
Re: [ovs-dev] [PATCH] docs: Add references to git-pw
On 31 August 2017 at 02:02, Stephen Finucane wrote: > On Thu, 2017-08-31 at 09:59 +0100, Stephen Finucane wrote: >> On Wed, 2017-08-30 at 10:38 -0700, Joe Stringer wrote: >> > On 29 August 2017 at 02:54, Stephen Finucane wrote: > > [snip] > >> > However, it seems like this is broken right now. (git-pw patch list >> > returns empty list if I have project configured) >> >> Eek. So that's a bug with Patchwork, not git-pw. I've posted the patch [1] >> and it should be there before the end of the week. Good catch. > > If you did want to play with this rn, using the project name (as opposed to > the > linkname) will let you do so: > > git config pw.project 'open vswitch' Ah, nice. Funny how assumptions like this can leak into the code :-) Thanks Stephen. ___ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev