Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
thg
thg
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 802
    • Issues 802
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • 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
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None