Allow a user to set the number of commits to be canonicalized regardless of the state of the remote.
<rdar://problem/75693154>
Created attachment 423894 [details] Patch
Comment on attachment 423894 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=423894&action=review > Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/canonicalize/__init__.py:80 > + difference = args.number difference should be replaced by something which indicate the purpose, e.g.: num_commits_to_canonicalize > Tools/Scripts/libraries/webkitscmpy/webkitscmpy/program/canonicalize/__init__.py:81 > + if not args.number: better to use the above variable here in in condition, e.g.: 'if difference'/'if num_commits_to_canonicalize' > Tools/Scripts/libraries/webkitscmpy/webkitscmpy/test/canonicalize_unittest.py:213 > + self.assertEqual( can consider formatting it in one line.
Committed r274771 (235580@main): <https://commits.webkit.org/235580@main>