Bug 221986

Summary: [webkitscmpy] Document package usage
Product: WebKit Reporter: Jonathan Bedard <jbedard>
Component: Tools / TestsAssignee: Jonathan Bedard <jbedard>
Severity: Normal CC: aakash_jain, dewei_zhu, slewis, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Description Flags
Patch for landing none

Description Jonathan Bedard 2021-02-16 12:09:22 PST
Now that webkitscmpy is a more mature package in production usage, we should update it's documentation.
Comment 1 Radar WebKit Bug Importer 2021-02-16 12:09:37 PST
Comment 2 Jonathan Bedard 2021-02-16 14:27:34 PST
Created attachment 420541 [details]
Comment 3 Stephanie Lewis 2021-02-16 15:04:32 PST
Comment on attachment 420541 [details]

View in context: https://bugs.webkit.org/attachment.cgi?id=420541&action=review

> Tools/Scripts/libraries/webkitscmpy/README.md:7
> +webkitcorepy along with fasteners, monotonic, whichcraft, and xmltodict.

nit: Think this would read better as bulleted list than as a sentence

> Tools/Scripts/libraries/webkitscmpy/README.md:11
> +The `git-webkit` command exposes much of the utility of the `webkitscmpy` library to the command line. Most notably:

nit: the utility of webktscmpy seems circular.  We haven't defined what the utility is yet.  Maybe replace with what the utility of webkitscmpy is

> Tools/Scripts/libraries/webkitscmpy/README.md:15
> +`git-webkit checout <ref>`: Move the current local repository to the provided git ref, Subversion revision or identifier.

typo checkout

> Tools/Scripts/libraries/webkitscmpy/README.md:17
> +`git-webkit canoniclize`: Standardize commit authorship and put identifiers into the commit message.

typo canonicalize.  I think that's an awkward name for a command

> Tools/Scripts/libraries/webkitscmpy/README.md:21
> +The `webkitscmpy` library provides a repository abstraction for both local and remote repositories. Those abstractions

nit: Instead of Those abstractions can be instantiated in code like so

how about: To instantiate a repository object.

> Tools/Scripts/libraries/webkitscmpy/README.md:28
> +remote.Scm.from_url('https://svn.webkit.org/repository/webkit')

nit: Would this make more sense if it was assigned to a variable?

> Tools/Scripts/libraries/webkitscmpy/README.md:33
> +be missing from certain implementations. For example, remote repositories do not have a `checkout` command available.

nit how about While the abstraction layer is consistent for all implementations not all implementation support every feature.  For example, ...

> Tools/Scripts/libraries/webkitscmpy/README.md:35
> +Each repository abstraction keeps a record contributors, which can be primed and passed into the repository object:

nit: record of contributors? list of contributor records?
Comment 4 Jonathan Bedard 2021-02-16 15:52:32 PST
Created attachment 420554 [details]
Patch for landing
Comment 5 EWS 2021-02-16 16:38:32 PST
Committed r272939: <https://commits.webkit.org/r272939>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 420554 [details].