id,summary,reporter,owner,description,type,status,priority,component,severity,resolution,keywords,cc,release
7242,[PATCH] Trac 0.12 compatibility + other improvements,mrelbe,rjollos,I have modified the plugin and adapted it to Trac 0.12 and made it multi-repo aware. I also couldn't resist in implementing some other requested improvements. In short:\r\n\r\n * Multi-repo aware for Trac 0.12 (#7062)\r\n * Revision ranges can now be stated (#327)\r\n * Changelog are put in a definition list (#3919)\r\n\r\n\r\nThe log indents nicely when stated in a list:\r\n{{{\r\nLast changes:\r\n * Default repo:\r\n   [[ChangeLog(/)]]\r\n * otherrepo:\r\n   [[ChangeLog(otherrepo:/)]]\r\n}}}\r\n\r\nI hope you don't mind me providing this patch_ it may look like the plugin is completely re-written_ but it's not. I've done this by applying successive changes_ before supplying this ticket_ all in good faith.\r\n\r\nPlease be critical to the patch as I am not a very experienced Python coder. I wouldn't be surprised if the parameter decoding can be made simpler/smarter.\r\n\r\nI have not tested this on Trac 0.11_ the plugin should be broken using Trac 0.11 due to the multi-repo capability (I have not studied the Trac 0.11 code).\r\n\r\nI also updated the documentation:\r\n\r\n{{{\r\nWrite repository change log to output.\r\n\r\nThe !ChangeLog macro writes a log of the last changes of a repository at a\r\ngiven path. Following variants are possible to use:\r\n{{{\r\n1. [[ChangeLog([reponame:]path)]]\r\n2. [[ChangeLog([reponame:]path@rev)]]\r\n3. [[ChangeLog([reponame:]path@rev_ limit)]]\r\n4. [[ChangeLog([reponame:]path@from-to)]]\r\n5. [[ChangeLog([reponame:]path@rev_ limit_ rev)]]\r\n}}}\r\n\r\n 1. Default repository is used if reponame is left out. To show the last five changes of the default repository:\r\n{{{\r\n[[ChangeLog(/)]]\r\n}}}\r\n   To show the last five changes of the trunk folder in a named repo:\r\n{{{\r\n[[ChangeLog(otherrepo:/trunk)]]\r\n}}}\r\n 2. The ending revision can be set. To show the last five changes up to revision 99:\r\n{{{\r\n[[ChangeLog(otherrepo:/trunk@99)]]\r\n}}}\r\n 3. The limit can be set by an optional parameter. To show the last 10 changes_ up to revision 99:\r\n{{{\r\n[[ChangeLog(otherrepo:/trunk@99_ 10)]]\r\n}}}\r\n 4. A range of revisions can be logged.\r\n{{{\r\n[[ChangeLog(otherrepo:/trunk@90-99)]]\r\n}}}\r\n    To lists all changes:\r\n{{{\r\n[[ChangeLog(otherrepo:/trunk@1-HEAD)]]\r\n}}}\r\n    HEAD can be left out:\r\n{{{\r\n[[ChangeLog(otherrepo:/trunk@1-)]]\r\n}}}\r\n 5. For backwards compatibility_ revision can be stated as a second parameter instead:\r\n{{{\r\n[[ChangeLog(otherrepo:/trunk_ 10_ 99)]]\r\n}}}\r\n\r\nlimit and rev may be keyword arguments.\r\n{{{\r\n[[ChangeLog(otherrepo:/trunk_ limit=10_ rev=99)]]\r\n}}}\r\n}}}\r\n,enhancement,closed,normal,ChangeLogMacro,normal,fixed,,,0.12
