Changeset 80aac712a85d…
Parent e8c481854f07…
by
Changes to one file · Browse files at 80aac712a85d Showing diff from parent e8c481854f07 Diff from another changeset...
@@ -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))
|
Loading...