equal
deleted
inserted
replaced
13 """ |
13 """ |
14 |
14 |
15 from i18n import gettext as _ |
15 from i18n import gettext as _ |
16 from demandload import * |
16 from demandload import * |
17 demandload(globals(), "cStringIO errno getpass popen2 re shutil sys tempfile") |
17 demandload(globals(), "cStringIO errno getpass popen2 re shutil sys tempfile") |
18 demandload(globals(), "os threading time calendar ConfigParser") |
18 demandload(globals(), "os threading time calendar ConfigParser locale") |
|
19 |
|
20 _encoding = os.environ.get("HGENCODING") or locale.getpreferredencoding() |
19 |
21 |
20 # used by parsedate |
22 # used by parsedate |
21 defaultdateformats = ('%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M', |
23 defaultdateformats = ('%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M', |
22 '%a %b %d %H:%M:%S %Y') |
24 '%a %b %d %H:%M:%S %Y') |
23 |
25 |