Subversion: Add revision data to code file on commit

后端 未结 7 826
挽巷
挽巷 2020-12-05 18:21

Is there an easy way to, on commit of a file, automatically insert information into the code file itself (like author, commit comment, commit date, etc)? I would want this i

7条回答
  •  旧时难觅i
    2020-12-05 19:00

    I know it's not the answer you are looking for, but I'd try to talk them out of doing that.

    The best bet would be to use keyword substitutions, but SVN does not provide a $Log$ keyword for good reasons (see http://subversion.tigris.org/faq.html#log-in-source), which is the same reason I'd use to argue against having the log in the code.

提交回复
热议问题