# HG changeset patch # User Martin von Zweigbergk # Date 1522770418 25200 # Node ID a494cccb673e9a1379378e9d585572d78b33d1e8 # Parent 2f859ad7ed8ceff358058440ab315547c91e5d65 bookmarks: switch from repo.changectx('.') to repo['.'] The two forms are synonymous and the new form is by far the more common form. Differential Revision: https://phab.mercurial-scm.org/D3033 diff -r 2f859ad7ed8c -r a494cccb673e mercurial/bookmarks.py --- a/mercurial/bookmarks.py Wed Mar 28 14:52:57 2018 -0700 +++ b/mercurial/bookmarks.py Tue Apr 03 08:46:58 2018 -0700 @@ -204,7 +204,7 @@ If divergent bookmark are to be deleted, they will be returned as list. """ - cur = self._repo.changectx('.').node() + cur = self._repo['.'].node() if mark in self and not force: if target: if self[mark] == target and target == cur: @@ -818,7 +818,7 @@ Raises an abort error if old is not in the bookmark store. """ marks = repo._bookmarks - cur = repo.changectx('.').node() + cur = repo['.'].node() newact = None changes = [] hiddenrev = None