这个问号 (mercurial) 是什么意思?

What does this questionmark (mercurial) mean?

看似简单的问题,为什么我运行命令"Hg push"和"Hg commit"后这个文件前面有一个问号。我如何让这个新文件上传到 mercurial 服务器?为什么我的 mercurial commit 留下了一个文件?

    @Xinl ➜  projectfolder  hg status
    ? data/openend_coding/soundex_unaidedlogopay1.py

引自hg help status(hg 的帮助非常广泛,总是值得一看!):

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)

在 mercurial 跟踪文件之前,您必须通过 hg add 告诉它实际这样做。永远不会提交未跟踪的文件。