# # # patch "rcs_import.cc" # from [fdf18895a8cf6135ee7f14e3a3a13758e512a4b7] # to [a5b67790a94c7cf8c79dd1a10384e2127bcb2efb] # ============================================================ --- rcs_import.cc fdf18895a8cf6135ee7f14e3a3a13758e512a4b7 +++ rcs_import.cc a5b67790a94c7cf8c79dd1a10384e2127bcb2efb @@ -1396,16 +1396,18 @@ class blob_label_writer if (b.get_digest().is_commit()) { L(FL("blob %d: commit") % v); + + label = (FL("blob %d: commit\\n\\n") % v).str(); + + if (b.begin() != b.end()) + { //utf8 author, clog; const shared_ptr< cvs_commit > ce = boost::static_pointer_cast(*b.begin()); - label = (FL("blob %d: commit") % v).str(); - // FIXME: won't work because I need to escape... //cvs.split_authorclog(ce->authorclog, author, clog); //label += "\\n" + author; - label += "\\n\\n"; for (blob_event_iter i = b.begin(); i != b.end(); i++) { @@ -1417,6 +1419,9 @@ class blob_label_writer label += cvs.rcs_version_interner.lookup(ce->rcs_version); label += "\\n"; } + } + else + label += "-- empty --"; } else if (b.get_digest().is_branch()) {