52
$ hg status

M ...
M ...
M ...
? ...
? ...
? ...

I need to add all not tracked (? marked) files. Is it possible? I can do "hg add *" but I will get many messages unwanted 'file already tracked'.

Stan
  • 8,710
  • 2
  • 29
  • 31
ceth
  • 44,198
  • 62
  • 180
  • 289

1 Answers1

91

Just use hg add with no *.

When no files are given, it adds all untracked files, that is, all files with ? in front of the output of hg status.

Files that are ignored because of .hgignore will not be added by hg add without filenames.

bodqhrohro
  • 119
  • 2
  • 7
Peer Stritzinger
  • 8,232
  • 2
  • 30
  • 43