gregsohl Posted July 25, 2012 Report Share Posted July 25, 2012 What is the maximum allowed length of a Label in PlasticSCM v4.1.x.x? Couldn't find it in the doc. Is there a published doc of all specifications, such as this? Branch name length, comment length, etc.? Thanks. Greg Link to comment Share on other sites More sharing options...
cidico Posted July 25, 2012 Report Share Posted July 25, 2012 Hi Greg! I just discovered that the label's comment length is 1000. Or are you asking about the label name? Link to comment Share on other sites More sharing options...
gregsohl Posted July 25, 2012 Author Report Share Posted July 25, 2012 Sorry I wasn't specific. Yes, I'm asking about the label name. But the 2nd portion of the question is equally important - are all these types of limits documented somewhere? Link to comment Share on other sites More sharing options...
cidico Posted July 25, 2012 Report Share Posted July 25, 2012 I did a quick research here and I didn't find anything related to that. Link to comment Share on other sites More sharing options...
manu Posted July 26, 2012 Report Share Posted July 26, 2012 Hi, sorry, but it's not documented. The maximum value is 100 characters. Link to comment Share on other sites More sharing options...
cidico Posted July 26, 2012 Report Share Posted July 26, 2012 Hi Manu! Why didn't you let those fields as varchar(MAX) ? I mean... the day before yesterday I was creating a label (which would be a merge of X branches) and I was copying & pasting to the label's comment all the comments from the origin branches in the merge but I discovered that the max char is 1000. This fields could me varchar(max) right? Or is it a limitation of some databases? Link to comment Share on other sites More sharing options...
manu Posted July 26, 2012 Report Share Posted July 26, 2012 Hi cidico, it's a limitation of the different databases we support, you know, you have to choose the common minimum to support all of them. Link to comment Share on other sites More sharing options...
manu Posted September 9, 2014 Report Share Posted September 9, 2014 Ey!! We finally did it. Check the "5.0.44.598" release. Release notes: New Server: Now, the maximum comment size can be manually configured. To configure this parameter, add a new tag in the server's 'db.conf' file, named 'CommentLimit' in order to set the value for the maximum allowed comment length (in characters). Example: <DbConfig> ... <CommentLimit>2000</CommentLimit> ... </DbConfig> However, this configuration will require the sysadmin to manually alter the database tables to match this new value (see column 'scomment' on table 'object'). The comment length limit is set to 1000 characters by default. Even so, importing data (cm sync or cm fast-import) will only store the first 1000 characters of incoming comments, no matter which value is contained in the 'CommentLimit' tag. Warning: Please note that replication operations may fail if servers have different comment length limits. Please make sure that all involved servers have their 'CommentLimit' tag set to the same value in the 'db.conf' file and their repository databases have been modified accordingly. Link to comment Share on other sites More sharing options...
cidico Posted September 9, 2014 Report Share Posted September 9, 2014 Wow!! Thanks, Códice!! You're guys are awesome!! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.