Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does this questionmark (mercurial) mean?

It seems like a simple question, but why does this file have a question mark in front of it after I have run the commands "Hg push" and "Hg commit". How do I get this new file to upload to the mercurial server? Why did my mercurial commit leave behind a file?

    @Xinl ➜  projectfolder  hg status
    ? data/openend_coding/soundex_unaidedlogopay1.py
like image 605
polka Avatar asked Jun 01 '16 22:06

polka


1 Answers

Quote from hg help status (hg's help is quite extensive and always worth a look!):

The codes used to show the status of files are:

  M = modified
  A = added
  R = removed
  C = clean
  ! = missing (deleted by non-hg command, but still tracked)
  ? = not tracked
  I = ignored
    = origin of the previous file (with --copies)

Before mercurial tracks a file you have to tell it to actually do so by means of hg add. Untracked files are never committed.

like image 105
planetmaker Avatar answered Sep 19 '22 11:09

planetmaker