IOError when trying to shelve files in repo that is located in an admin protected area
Created originally on Bitbucket by Anonymous
My C:_projects\WpfRainbowColors3 was initially created using admin user. Currently when I'm trying to access that dir using another user (which also has admin rights) I'm getting a following exception:
#!python ** Mercurial version (3.3). TortoiseHg version (3.3) ** Command: --nofork workbench ** CWD: C:\_projects\WpfRainbowColors3 ** Encoding: cp1252 ** Extensions loaded: eol, hgk, rebase, shelve, transplant, strip ** Python version: 2.7.6 (default, Nov 10 2013, 19:24:24) [MSC v.1500 64 bit (AMD64)] ** Windows version: sys.getwindowsversion(major=6, minor=2, build=9200, platform=2, service_pack='') ** Processor architecture: x64 ** Qt-4.8.5 PyQt-4.10.3 QScintilla-2.7.2 Traceback (most recent call last): File "tortoisehg\hgqt\shelve.pyo", line 229, in moveFilesRight File "tortoisehg\hgqt\chunks.pyo", line 341, in mergeChunks File "tortoisehg\hgqt\thgrepo.pyo", line 898, in thgbackup File "shutil.pyo", line 83, in copyfile IOError: [Errno 22] invalid mode ('wb') or filename: 'C:\\_projects\\WpfRainbowColors3\\.hg\\Trashcan\\2016-08-23_15-01-23_parent_rev_30__grey_uql5sh.bak'
However, when I run TortoiseHG as administrator everything is ok.