comparison mercurial/util.py @ 3263:c9cd63a6fce9

Add documentation about the date formats allowed in the command line
author Jose M. Prieto <jmprieto@gmx.net>
date Tue, 03 Oct 2006 12:33:22 +0200
parents e5c9a084ffe3
children ec6f400cff4d
comparison
equal deleted inserted replaced
3262:e5c9a084ffe3 3263:c9cd63a6fce9
935 except ValueError: 935 except ValueError:
936 pass 936 pass
937 else: 937 else:
938 break 938 break
939 else: 939 else:
940 raise ValueError(_('invalid date: %r') % string) 940 raise ValueError(_('invalid date: %r '
941 'see hg(1) manual page for details')
942 % string)
941 # validate explicit (probably user-specified) date and 943 # validate explicit (probably user-specified) date and
942 # time zone offset. values must fit in signed 32 bits for 944 # time zone offset. values must fit in signed 32 bits for
943 # current 32-bit linux runtimes. timezones go from UTC-12 945 # current 32-bit linux runtimes. timezones go from UTC-12
944 # to UTC+14 946 # to UTC+14
945 if abs(when) > 0x7fffffff: 947 if abs(when) > 0x7fffffff: