在
www.cvstrac.org上提交个这个问题,第二天就收到回应(效率还是蛮高的,
),给了段代码,是在ticket.c中修改:
Index: ticket.c
===================================================================
RCS file: /cvstrac/cvstrac/ticket.c,v
retrieving revision 1.104
diff -u -r1.104 ticket.c
--- ticket.c 5 Apr 2006 01:34:49 -0000 1.104
+++ ticket.c 11 Apr 2006 00:14:53 -0000
@@ -641,6 +641,16 @@
common_add_action_item(mprintf("attach_add?tn=%d",tn), "Attach");
}
}
+ z = db_short_query("SELECT max(tn) FROM ticket WHERE tn<%d", tn);
+ if( z && z[0] ){
+ common_add_action_item(mprintf("tktview?tn=%d",atoi(z)), "0Previous");
+ free(z);
+ }
+ z = db_short_query("SELECT min(tn) FROM ticket WHERE tn>%d", tn);
+ if( z && z[0] ){
+ common_add_action_item(mprintf("tktview?tn=%d",atoi(z)), "1Next");
+ free(z);
+ }
common_add_help_item("CvstracTicket");
/* Check to see how many "extra" ticket fields are defined
建议CnPack是否可以放在下个版本中?