Mercurial > p > roundup > code
comparison roundup/hyperdb.py @ 5527:a7c3cd2edf51
No traceback for non-existent items in history
| author | Ralf Schlatterbeck <rsc@runtux.com> |
|---|---|
| date | Mon, 03 Sep 2018 12:00:46 +0200 |
| parents | bb7865241f8a |
| children | fea11d05110e |
comparison
equal
deleted
inserted
replaced
| 5526:df3f553fa414 | 5527:a7c3cd2edf51 |
|---|---|
| 1099 # obsolete property or class | 1099 # obsolete property or class |
| 1100 if not cls or key not in cls.properties: | 1100 if not cls or key not in cls.properties: |
| 1101 if not enforceperm or allow_obsolete: | 1101 if not enforceperm or allow_obsolete: |
| 1102 journal.append(j) | 1102 journal.append(j) |
| 1103 continue | 1103 continue |
| 1104 # obsolete linked-to item | |
| 1105 try: | |
| 1106 k = cls.get (linkid, key) | |
| 1107 except IndexError: | |
| 1108 if not enforceperm or allow_obsolete: | |
| 1109 journal.append(j) | |
| 1110 continue | |
| 1104 # is the updated property quiet? | 1111 # is the updated property quiet? |
| 1105 if skipquiet and cls.properties[key].quiet: | 1112 if skipquiet and cls.properties[key].quiet: |
| 1106 logger.debug("skipping quiet property: " | 1113 logger.debug("skipping quiet property: " |
| 1107 "%s %sed %s%s", | 1114 "%s %sed %s%s", |
| 1108 j_repr, action, self.classname, nodeid) | 1115 j_repr, action, self.classname, nodeid) |
