1. TortoiseHg
  2. TortoiseHg
  3. thg
  4. Issues
Issue #1313 resolved

Cannot add files to repository prefixed with a dash (-)

created an issue

Tortoise HG errors when I try to add files prefixed with a dash. For example, trying to add a file named "-footer.inc."

I get the error:

% hg add -footer.inc ('add', GetoptError('option -f not recognized', 'f')) [command returned code 255 Wed Oct 12 11:21:16 2011]

Comments (3)

  1. Steve Borho
    • changed status to open

    Nice, what mechanism were you using to perform the add?

    It needs to be modified to us a command line of the form:

    hg add -- -footer.inc


    hg add path:-footer.inc

  2. Log in to comment