examining history of deleted file

前端 未结 17 1831
臣服心动
臣服心动 2020-11-30 17:36

If I delete a file in Subversion, how can I look at it\'s history and contents? If I try to do svn cat or svn log on a nonexistent file, it complai

17条回答
  •  情深已故
    2020-11-30 18:23

    Ah, since I am learning to use Bazaar, it is something I tried. Without success, it appears you cannot log and annotate removed files currently... :-(

    Tried:

    > bzr log -r 3 Stuff/ErrorParser.hta
    bzr: ERROR: Path does not have any revision history: Stuff/ErrorParser.hta
    

    but curiously (and fortunately) I can do:

    > bzr cat -r 3 Stuff/ErrorParser.hta
    

    and:

    > bzr diff -r 2..3 Stuff/ErrorParser.hta
    

    and as suggested in the bug above:

    > bzr log -v | grep -B 1 ErrorParser
    

    (adjust -B (--before-context) parameter as needed).

提交回复
热议问题