*** CSSC-1.0.1/sccsfile.h Thu Oct 11 15:42:57 2007 --- orig/CSSC-1.0.1/sccsfile.h Sun Oct 17 13:30:06 2004 *************** *** 201,207 **** sccs_pfile &pfile, int *failed) const; bool test_locks(sid got, sccs_pfile &pfile) const; ! struct get_status get(FILE *out, mystring name, sid &id, // DIRKHELL if working with -c sid must given back sccs_date cutoff_date = sccs_date(), // XXX: was sccs_date(NULL) (bad!) sid_list include = sid_list(""), sid_list exclude = sid_list(""), --- 201,207 ---- sccs_pfile &pfile, int *failed) const; bool test_locks(sid got, sccs_pfile &pfile) const; ! struct get_status get(FILE *out, mystring name, sid id, sccs_date cutoff_date = sccs_date(), // XXX: was sccs_date(NULL) (bad!) sid_list include = sid_list(""), sid_list exclude = sid_list(""), *** CSSC-1.0.1/sf-get2.cc Thu Oct 11 16:39:02 2007 --- orig/CSSC-1.0.1/sf-get2.cc Sun Oct 17 14:24:20 2004 *************** *** 370,376 **** should be included in the output file. */ /* struct */ sccs_file::get_status ! sccs_file::get(FILE *out, mystring gname, sid &id, sccs_date cutoff_date, sid_list include, sid_list exclude, int keywords, const char *wstring, int show_sid, int show_module, int debug, --- 370,376 ---- should be included in the output file. */ /* struct */ sccs_file::get_status ! sccs_file::get(FILE *out, mystring gname, sid id, sccs_date cutoff_date, sid_list include, sid_list exclude, int keywords, const char *wstring, int show_sid, int show_module, int debug, *************** *** 411,427 **** for (seq_no s = d->seq; s>0; s--) { const struct delta & d = delta_table->delta_at_seq(s); ! const sid & lid = d.id; if (!state.is_excluded(s) && !set) { ! dparm = find_delta(lid); ! // DIRKHELL If i find the right state (if excludes are generated ! // with -c) I have to store the associated SID and give it back ! // to the caller. Without this, the correct version of file was ! // fetched and printed (fine), but always the highest SID was ! // printed (wrong)! ! id=lid; set = true; } } --- 411,421 ---- for (seq_no s = d->seq; s>0; s--) { const struct delta & d = delta_table->delta_at_seq(s); ! const sid & id = d.id; if (!state.is_excluded(s) && !set) { ! dparm = find_delta(id); set = true; } }