You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On encoutering folder with .hg subfolder this script attempts to call mercurial. If mercurial is not installed (may be typical today as git seems to won version control wars) this script crashes.
I would expect error message or even better - complaint ans skipping over such repository.
To reproduce - uninstall mercurial (if any is available), create folder, create subfolder named .hg, call this script to check location where test folder were created.
I gues that it is caused by folder with unsufficient rights. I would expect it to handle it gracefully and skip folder
Traceback (most recent call last):
File "/usr/local/bin/uncommitted", line 9, in <module>
load_entry_point('uncommitted==1.2', 'console_scripts', 'uncommitted')()
File "build/bdist.linux-x86_64/egg/uncommitted/command.py", line 134, in main
File "build/bdist.linux-x86_64/egg/uncommitted/command.py", line 92, in scan
File "build/bdist.linux-x86_64/egg/uncommitted/command.py", line 51, in status_mercurial
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 13] Permission denied
The text was updated successfully, but these errors were encountered:
matkoniecz
changed the title
dies on unsufficient permission
crashes without mercurial installed
Jun 14, 2016
On encoutering folder with
.hg
subfolder this script attempts to call mercurial. If mercurial is not installed (may be typical today as git seems to won version control wars) this script crashes.I would expect error message or even better - complaint ans skipping over such repository.
To reproduce - uninstall mercurial (if any is available), create folder, create subfolder named
.hg
, call this script to check location where test folder were created.I gues that it is caused by folder with unsufficient rights. I would expect it to handle it gracefully and skip folderThe text was updated successfully, but these errors were encountered: