Re: [fossil-users] History for a particular file

2009-10-28 Thread altufaltu
Hi DRH, Shall I commit these changes? - Altu -Original Message- From: Venkat Iyer ven...@comit.com To: fossil-users@lists.fossil-scm.org Sent: Wed, Oct 28, 2009 11:48 am Subject: Re: [fossil-users] History for a particular file I am not sure how to get it in, and if it's

Re: [fossil-users] History for a particular file

2009-10-21 Thread Joshua Paine
I would like to see this feature in fossil. How does an enhancement like this make its way into the main codebase? -- Joshua Paine LetterBlock: Web applications built with joy http://letterblock.com/ 301-576-1920 ___ fossil-users mailing list

Re: [fossil-users] History for a particular file

2009-10-21 Thread Stephan Beal
On Wed, Oct 21, 2009 at 3:09 AM, Venkat Iyer ven...@comit.com wrote: A tiny optimization suggestion: Blob line; while( db_step(q)==SQLITE_ROW ){ ... as before... } blob_reset(line); i believe that will avoid re-allocating the buffer string on each loop iteration (it will only need to

[fossil-users] History for a particular file

2009-10-20 Thread Venkat Iyer
In src/info.c, just before the finfo_page, add this code below. Then fossil finfo filename Gives you the change history for a file. This is my first attempt at doing anything inside fossil. Suggestions welcome. - Venks /* ** COMMAND: finfo FILENAME ** ** Print the complete change

Re: [fossil-users] History for a particular file

2009-10-20 Thread D. Richard Hipp
On Oct 20, 2009, at 7:46 PM, Venkat Iyer wrote: while( db_step(q)==SQLITE_ROW ){ const char *zUuid = db_column_text(q, 0); const char *zDate = db_column_text(q, 1); const char *zCom = db_column_text(q, 2); const char *zUser = db_column_text(q, 3); printf(Ver %.10s by %.10s

Re: [fossil-users] History for a particular file

2009-10-20 Thread Venkat Iyer
Thanks. Naively: while( db_step(q)==SQLITE_ROW ){ Blob line; const char *zUuid = db_column_text(q, 0); const char *zDate = db_column_text(q, 1); const char *zCom = db_column_text(q, 2); const char *zUser = db_column_text(q, 3); blob_zero(line); blob_appendf(line,