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
  • #5686
Closed
Open
Created Feb 05, 2021 by David Hollman@DaveInCaz

{SELECTEDFILES} variable ends up blank in custom tool?

I was trying to use the {SELECTEDFILES} variable / macro in a THG custom tool, but it always seems to come up blank when the custom tool is run.

Here's what I have in my tool:

image

From the INI file:

HG_shelve.command = hg shelve {SELECTEDFILES}
HG_shelve.enable = iswd
HG_shelve.icon = go-next
HG_shelve.label = HG_shelve
HG_shelve.showoutput = True
HG_shelve.tooltip = HG_shelve

What gets printed in the console area is just this:

% hg shelve

regardless of whether I have any files selected or not.

I've tried selecting both with the checkboxes and also just CTRL-clicking, neither works.

I've used the {ROOT} variable, and that works...

Am I doing something wrong? Or is this a bug?

I'm using THG 5.6.1.

Thanks!

Edited Feb 05, 2021 by David Hollman
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking