Re: svnwcsub.py does not work across different SVN trees

2021-05-13 Thread Daniel Shahaf
sebb wrote on Thu, 13 May 2021 14:46 +00:00: > On Thu, 13 May 2021 at 15:03, Daniel Shahaf wrote: > > > > sebb wrote on Wed, May 12, 2021 at 10:47:15 +0100: > > > It looks like svnwcsub.py is not always able to update the workspace > > > > Don't use made-up terminology. The terms "repository"

Re: svnwcsub.py does not work across different SVN trees

2021-05-13 Thread sebb
On Thu, 13 May 2021 at 15:03, Daniel Shahaf wrote: > > sebb wrote on Wed, May 12, 2021 at 10:47:15 +0100: > > It looks like svnwcsub.py is not always able to update the workspace > > Don't use made-up terminology. The terms "repository" and "working > copy" have specific meanings. Use those

Re: svnpubsub/commit-hook.py:65 - variable url assigned but not used

2021-05-13 Thread sebb
Furthermore, the method does not actually return a URL. The method behaves like the following: https://python.readthedocs.io/en/v2.7.2/library/urllib2.html#urllib2.urlopen On Thu, 13 May 2021 at 15:16, sebb wrote: > > The problem is that it is not clear whether the variable is supposed > to be

Re: svnwcsub.py - various pylint errors

2021-05-13 Thread Daniel Shahaf
sebb wrote on Wed, May 12, 2021 at 12:25:26 +0100: > pylint reports quite a few warnings and errors: > > svnwcsub.py:55:0: W0311: Bad indentation. Found 2 spaces, expected 4 > (bad-indentation) Don't hard-wrap program output in your emails. > svnwcsub.py:57:0: W0311: Bad indentation. Found 2

Re: svnpubsub/commit-hook.py:65 - variable url assigned but not used

2021-05-13 Thread sebb
The problem is that it is not clear whether the variable is supposed to be used or not. Is it misspelt? AIUI the convention for intentionally unused variables is to prefix the name with an underscore, as this no longer triggers the warning in PyLint On Thu, 13 May 2021 at 15:11, Daniel Shahaf

Re: svnpubsub/commit-hook.py:65 - variable url assigned but not used

2021-05-13 Thread Daniel Shahaf
sebb wrote on Wed, May 12, 2021 at 11:49:41 +0100: > As the subject says Assuming opener.open() actually returns a URL, I don't see the problem here. The variable documents the return type for anyone who may want to extend the function.

Re: watcher.py no longer uses urlparse

2021-05-13 Thread Daniel Shahaf
sebb wrote on Wed, May 12, 2021 at 11:48:17 +0100: > As the subject says. +1 to commit, but the log message should follow the house style, for example: [[[ * tools/server-side/svnpubsub/watcher.py (urlparse): Remove unused import. Approved by: danielsh ]]]

Re: svnwcsub.py does not work across different SVN trees

2021-05-13 Thread Daniel Shahaf
sebb wrote on Wed, May 12, 2021 at 10:47:15 +0100: > It looks like svnwcsub.py is not always able to update the workspace Don't use made-up terminology. The terms "repository" and "working copy" have specific meanings. Use those terms to refer to what they mean. Don't use those terms to mean

Re: svnpubsub/svnwcsub.py crashes if pidfile option is not supplied

2021-05-13 Thread Daniel Shahaf
sebb wrote on Tue, May 11, 2021 at 22:41:38 +0100: > On Tue, 11 May 2021 at 19:33, Daniel Shahaf wrote: > > > > sebb wrote on Tue, 11 May 2021 16:25 +00:00: > > > As the subject says, the code crashes as below unless --pidfile is > > > provided > > > > > > File "./svnwcsub.py", line 559, in >