1 """ |
1 # util.py - Mercurial utility functions and platform specfic implementations |
2 util.py - Mercurial utility functions and platform specfic implementations |
2 # |
3 |
3 # Copyright 2005 K. Thananchayan <thananck@yahoo.com> |
4 Copyright 2005 K. Thananchayan <thananck@yahoo.com> |
4 # Copyright 2005-2007 Matt Mackall <mpm@selenic.com> |
5 Copyright 2005-2007 Matt Mackall <mpm@selenic.com> |
5 # Copyright 2006 Vadim Gelfer <vadim.gelfer@gmail.com> |
6 Copyright 2006 Vadim Gelfer <vadim.gelfer@gmail.com> |
6 # |
7 |
7 # This software may be used and distributed according to the terms of the |
8 This software may be used and distributed according to the terms of the |
8 # GNU General Public License version 2, incorporated herein by reference. |
9 GNU General Public License version 2, incorporated herein by reference. |
9 # |
10 |
10 # This contains helper routines that are independent of the SCM core and hide |
11 This contains helper routines that are independent of the SCM core and hide |
11 # platform-specific details from the core. |
12 platform-specific details from the core. |
|
13 """ |
|
14 |
12 |
15 from i18n import _ |
13 from i18n import _ |
16 import cStringIO, errno, re, shutil, sys, tempfile, traceback, error |
14 import cStringIO, errno, re, shutil, sys, tempfile, traceback, error |
17 import os, stat, threading, time, calendar, glob, osutil |
15 import os, stat, threading, time, calendar, glob, osutil |
18 import imp |
16 import imp |