comparison util.py @ 275:68aea59116b6

util: kill unused function
author Augie Fackler <durin42@gmail.com>
date Fri, 24 Apr 2009 20:25:14 -0500
parents 9f0738587f94
children 8ff0b3261b7f
comparison
equal deleted inserted replaced
274:a119ab6135f3 275:68aea59116b6
26 def normalize_url(svnurl): 26 def normalize_url(svnurl):
27 if svnurl.startswith('svn+http'): 27 if svnurl.startswith('svn+http'):
28 svnurl = svnurl[4:] 28 svnurl = svnurl[4:]
29 return svnurl.rstrip('/') 29 return svnurl.rstrip('/')
30 30
31
32 def wipe_all_files(hg_wc_path):
33 files = [f for f in os.listdir(hg_wc_path) if f != '.hg']
34 for f in files:
35 f = os.path.join(hg_wc_path, f)
36 if os.path.isdir(f):
37 shutil.rmtree(f)
38 else:
39 os.remove(f)
40 31
41 REVMAP_FILE_VERSION = 1 32 REVMAP_FILE_VERSION = 1
42 def parse_revmap(revmap_filename): 33 def parse_revmap(revmap_filename):
43 revmap = {} 34 revmap = {}
44 f = open(revmap_filename) 35 f = open(revmap_filename)