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
  • #5354
Closed
Open
Created Mar 03, 2019 by Bitbucket Importer@bitbucket_importerOwner

Cannot add file after reverting largefile addition

Created originally on Bitbucket by Mojca Miklavec

When user tries to add something as largefile, then changes his mind, reverts the addition and tries to add the file again, the process fails.

Steps to reproduce:

  • Create a file foo.txt
  • Right-click on the file and choose Add Largefiles...
  • Right-click on the same file, choose Revert..., answer Revert
  • The file now seems to be back as if it was never added. The hg status commands also says ? foo.txt, but the file .hglf/foo.txt is still present on the disk; note that this is also the case with command-line mercurial; manually adding and reverting a file also causes the file to remain inside .hglf.
  • Right-click on the file, choose Add.
  • Select the file, enter commit message and try to commit it. This step fails with the following error: abort: .hglf/foo.txt: file not tracked! [Code: 255].
  • On the other hand hg commit -m "Add foo.txt" from the command line seems to succeed.

The only workaround seems to be to manually delete the file .hglf/foo.txt, but there's absolutely no indication about this, and we had an user who kept struggling with the issue of being unable to commit the file until someone else helped him figure out what the actual problem was.

The behaviour seems to be specific to TortoiseHg, but I also suspect that mercurial was supposed to delete the file from .hglf in the first place.

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