Mercurial > evolve
changeset 349:9c156b9caa4f
obsolete: remove unused add2set/markerid functions
author | Patrick Mezard <patrick@mezard.eu> |
---|---|
date | Tue, 10 Jul 2012 15:14:58 +0200 |
parents | afbe4fc8de42 |
children | 8feb73f733cb |
files | hgext/obsolete.py |
diffstat | 1 files changed, 0 insertions(+), 25 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/obsolete.py Tue Jul 10 01:05:13 2012 +0200 +++ b/hgext/obsolete.py Tue Jul 10 15:14:58 2012 +0200 @@ -730,31 +730,6 @@ newer.add(()) return sorted(newer) -### obsolete relation storage -############################# -def add2set(d, key, mark): - """add <mark> to a `set` in <d>[<key>]""" - d.setdefault(key, []).append(mark) - -def markerid(marker): - KEYS = ['subjects', "object", "date", "user", "reason"] - for key in KEYS: - assert key in marker - keys = sorted(marker.keys()) - a = util.sha1() - for key in keys: - if key == 'subjects': - for sub in sorted(marker[key]): - a.update(sub) - elif key == 'id': - pass - else: - a.update(str(marker[key])) - a.update('\0') - return a.digest() - - - ### repo subclassing #############################