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 839
    • Issues 839
    • List
    • Boards
    • Service Desk
    • Milestones
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • 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
  • #2129

Closed
Open
Created Sep 05, 2012 by Bitbucket Importer@bitbucket_importerOwner

Subrepository always shown as dirty when using backslash in path

Created originally on Bitbucket by rpeshkov (Roman Peshkov)

== Problem == When using subrepositories placed in some subdirectory of main repository and in .hgsub backslash is used as path delimiter, tortoisehg always show that subrepository is dirty.

== Software == Windows 7 Home Basic x64 TortoiseHG 2.4.3 x64 with Mercurial 2.3

== How to recreate situation == In some directory execute the following commands: hg init master-bad cd master-bad mkdir lib cd lib hg init nested cd .. echo lib\nested=lib\nested > .hgsub hg add hg ci -m "Commit"

Then open HG Workbench and add master-bad repository to your repository registry. Even after commit, subrepository will be marked as dirty as shown in attached file "bad.png".

== What should be == In some directory execute the following commands: hg init master-good cd master-good mkdir lib cd lib hg init nested cd .. echo lib/nested=lib/nested > .hgsub
hg add hg ci -m "Commit"

Notice that slash is used in "echo lib/nested=lib/nested > .hgsub" instead of backslash. Then open HG Workbench and add master-good repository to your repository registry. Subrepository is not marked as dirty. It's shown in attached file "good.png".

Attachments: badgood

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