hgext/journal.py
changeset 48913 f254fc73d956
parent 48875 6000f5b25c9b
child 48935 2cce2fa5bcf7
equal deleted inserted replaced
48912:a0674e916fb6 48913:f254fc73d956
   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