Thus said "j. van den hoff" on Thu, 08 Aug 2013 08:31:04 +0200:
> `finfo -b' is supposed to produce one-line abbreviations for all
> commits but in fact introduces spurious line breaks which put a single
> trailing word (or some chars) on the next line.
This would appear to be a bug in the behavior. The following patch fixes
it:
Index: src/finfo.c
==================================================================
--- src/finfo.c
+++ src/finfo.c
@@ -196,11 +196,11 @@
blob_reset(&line);
blob_appendf(&line, "%.10s ", zCiUuid);
blob_appendf(&line, "%.10s ", zDate);
blob_appendf(&line, "%8.8s ", zUser);
blob_appendf(&line, "%8.8s ", zBr);
- blob_appendf(&line,"%-40.40s\n", zCom );
+ blob_appendf(&line,"%-38.38s\n", zCom );
comment_print(blob_str(&line), 0, 79);
}
}
db_finalize(&q);
blob_reset(&fname);
Results:
$ ./fossil finfo -n 10 -b BUILD.txt
d5f6e08c09 2013-06-10 drh ipv6 Merge all the latest trunk changes int
940b0b33c9 2013-04-21 ashish ashish-i Merge with trunk - Remove reverse-pro
f4b082d464 2012-10-09 viriketo annotate Updating from trunk. I solved some mer
abbc00fc5b 2012-08-24 jan.nijt eclipse- Merge in the mingw build enhancements
4e93e84e55 2012-08-24 jan.nijt trunk wiki tweaks regarding MinGW build enha
75aaf30aad 2011-08-30 viriketo merge_re Updating from trunk to keep up working
c57830bec2 2011-08-22 dmitry symlinks Merge trunk.
84e6f172af 2011-08-16 venkat venks-em update branch before making changes
3eb07708b1 2011-08-04 ben ben-test Merge trunk into ben-testing
75f02948fa 2011-07-22 drh trunk Merge the recent autosetup changes int
Andy
--
TAI64 timestamp: 400000005203eb30
_______________________________________________
fossil-users mailing list
[email protected]
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users