Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.4rc1, 0.4rc2, and 0.4rc3

hggtk/hglib: remove old history handling routines

Changeset 80aac712a85d

Parent e8c481854f07

by TK Soh

Changes to one file · Browse files at 80aac712a85d Showing diff from parent e8c481854f07 Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​shlib.py Stacked
 
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
 
36
37
38
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
40
41
@@ -36,23 +36,6 @@
  t = (t[0], t[1], t[2], t[3], time.clock())   return t   -def read_history(key='config_history'): - path = os.path.join(os.path.expanduser('~'), '.hgext', 'tortoisehg') - if not os.path.exists(os.path.dirname(path)): - os.makedirs(os.path.dirname(path)) - dbase = shelve.open(path) - dict = dbase.get(key, {}) - dbase.close() - return dict - -def save_history(dict, key='config_history'): - path = os.path.join(os.path.expanduser('~'), '.hgext', 'tortoisehg') - if not os.path.exists(os.path.dirname(path)): - os.makedirs(os.path.dirname(path)) - dbase = shelve.open(path) - dbase[key] = dict - dbase.close() -  def set_tortoise_icon(window, icon):   window.set_icon_from_file(get_tortoise_icon(icon))