equal
deleted
inserted
replaced
126 def recordbookmarks(orig, store, fp): |
126 def recordbookmarks(orig, store, fp): |
127 """Records all bookmark changes in the journal.""" |
127 """Records all bookmark changes in the journal.""" |
128 repo = store._repo |
128 repo = store._repo |
129 if util.safehasattr(repo, 'journal'): |
129 if util.safehasattr(repo, 'journal'): |
130 oldmarks = bookmarks.bmstore(repo) |
130 oldmarks = bookmarks.bmstore(repo) |
131 for mark, value in pycompat.iteritems(store): |
131 for mark, value in store.items(): |
132 oldvalue = oldmarks.get(mark, repo.nullid) |
132 oldvalue = oldmarks.get(mark, repo.nullid) |
133 if value != oldvalue: |
133 if value != oldvalue: |
134 repo.journal.record(bookmarktype, mark, oldvalue, value) |
134 repo.journal.record(bookmarktype, mark, oldvalue, value) |
135 return orig(store, fp) |
135 return orig(store, fp) |
136 |
136 |