7dcf1302df1abed662c1eb4ef504e00b4a40dee1
braney
  Mon Dec 17 14:09:00 2012 -0800
re-try a hub with an error message after a hg.conf configurable amount of time has passed (#9666)
diff --git src/inc/common.h src/inc/common.h
index 7fbd2ae..cd16de6 100644
--- src/inc/common.h
+++ src/inc/common.h
@@ -1416,20 +1416,23 @@
 #define IS_FALSE          IS_NO
 
 time_t mktimeFromUtc (struct tm *t);
 /* Return time_t for tm in UTC (GMT)
  * Useful for stuff like converting to time_t the
  * last-modified HTTP response header
  * which is always GMT. Returns -1 on failure of mktime */
 
 
 time_t dateToSeconds(const char *date,const char*format);
 // Convert a string date to time_t
 
 boolean dateIsOld(const char *date,const char*format);
 // Is this string date older than now?
 
+boolean dateIsOlderBy(const char *date,const char*format, time_t seconds);
+// Is this string date older than now by this many seconds?
+
 char *dateAddTo(char *date,char *format,int addYears,int addMonths,int addDays);
 /* Add years,months,days to a formatted date and returns the new date as a cloned string
 *  format is a strptime/strftime format: %F = yyyy-mm-dd */
 
 #endif /* COMMON_H */