开发者

Maximum length for SVN comment

Is there a limit on maximum length for a comment that we can have for SVN?

I have a script that generates a comment before committing the file at root level, it has all file names in its comment before committing, I am wondering if there is any limit on number of characters on comment for SVN.That is because if I am committing large number of files, then all file names would ap开发者_如何学编程pear in comment so was wondering how long the comment can be..


You have to differentiate between the svn ci -m message you give as a command line argument and the svn ci -F or svn ci --file version that allows you to specify the commit message in a file.

The command line variant is restricted by the shell you use; my test script stopped with a comment of little more than 131.000 chars. With the -F filename version I could commit dozens of megabytes.


With Subversion (unlike CVS), you don't need to include the filenames in each commit comment, because the filenames changed by a commit are already part of that commit information. It's easy to get the list of files changed by a commit without having to store it in the commit comment itself.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜