Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • thg thg
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 829
    • Issues 829
    • List
    • Boards
    • Service Desk
    • Milestones
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • mercurial
  • TortoiseHg
  • thgthg
  • Issues
  • #4573
Closed
Open
Created Aug 23, 2016 by Bitbucket Importer@bitbucket_importerOwner

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.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking