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

前端 未结 5 1212
借酒劲吻你
借酒劲吻你 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:59

    I just deleted the files that showed up as modified (make a backup if needed) which caused all the files to show up with an ! next to it when I ran

    hg st
    

    After that I ran the following command to revert the files (which were already checked in):

    hg revert --all --no-backup
    

    and that fixed the problem

提交回复
热议问题