Why does “hg status” show changed files when “hg diff -g” doesn't? (One parent)

前端 未结 5 1126
借酒劲吻你
借酒劲吻你 2021-01-31 08:40

I have a repository where:

> hg st

shows that my working directory has some uncommitted changes, while

> hg diff


> h         


        
5条回答
  •  借酒劲吻你
    2021-01-31 08:57

    In my case something was broken with hg. (same permissions and hg diff -g shows nothing). I fixed issue with next way:

    1. I cloned repository again in separate folder
    2. I removed everything from this folder except .hg
    3. I moved from old (broken) place everything except .hg to new place

    So after this step i have repository which cloned with current version of mercurial + exactly same files.

    After this steps i received same (empty) results for commands: hg st and hg diff -g

提交回复
热议问题