How can I force subversion to commit an unchanged file?

后端 未结 11 1105
孤街浪徒
孤街浪徒 2020-12-02 16:32

I want subversion to commit a file even if it\'s unchanged. Is there a way to do this?

11条回答
  •  死守一世寂寞
    2020-12-02 17:21

    I frigged this by deleting then re-adding the offending file. Not the nicest way to do it, and it probably broke the revision history, but it suited my purposes.

    Reason for wanting to do it: File was one of two executables built from the same source (with different #defines set). Minor change to source meant one had changed, one didn't. I wanted to record in the revision history that I had actually updated it to the latest version (even though there was no change).

    Maybe Morten Holdflod Møller's point that "the file will still be a part of the new revision" would cover this indication, but I think a log of the unchanged file did not show comments for that revision.

提交回复
热议问题