mercurial/obsutil.py
changeset 34851 6f53a53245a2
parent 34850 62a4ccf9784a
child 34873 aa849cf5d089
equal deleted inserted replaced
34850:62a4ccf9784a 34851:6f53a53245a2
   820         line.append(" by %s" % ", ".join(users))
   820         line.append(" by %s" % ", ".join(users))
   821 
   821 
   822     # Date
   822     # Date
   823     dates = markersdates(markers)
   823     dates = markersdates(markers)
   824 
   824 
   825     min_date = min(dates)
   825     if verbose:
   826     max_date = max(dates)
   826         min_date = min(dates)
   827 
   827         max_date = max(dates)
   828     if min_date == max_date:
   828 
   829         fmtmin_date = util.datestr(min_date, '%Y-%m-%d %H:%M %1%2')
   829         if min_date == max_date:
   830         line.append(" (at %s)" % fmtmin_date)
   830             fmtmin_date = util.datestr(min_date, '%Y-%m-%d %H:%M %1%2')
   831     else:
   831             line.append(" (at %s)" % fmtmin_date)
   832         fmtmin_date = util.datestr(min_date, '%Y-%m-%d %H:%M %1%2')
   832         else:
   833         fmtmax_date = util.datestr(max_date, '%Y-%m-%d %H:%M %1%2')
   833             fmtmin_date = util.datestr(min_date, '%Y-%m-%d %H:%M %1%2')
   834         line.append(" (between %s and %s)" % (fmtmin_date, fmtmax_date))
   834             fmtmax_date = util.datestr(max_date, '%Y-%m-%d %H:%M %1%2')
       
   835             line.append(" (between %s and %s)" % (fmtmin_date, fmtmax_date))
   835 
   836 
   836     return "".join(line)
   837     return "".join(line)