Patchwork D3033: bookmarks: switch from repo.changectx('.') to repo['.']

login
register
mail settings
Submitter phabricator
Date April 3, 2018, 6:13 p.m.
Message ID <68f53b3bee27a8c3468e79b643e4d372@localhost.localdomain>
Download mbox | patch
Permalink /patch/30203/
State Not Applicable
Headers show

Comments

phabricator - April 3, 2018, 6:13 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGa494cccb673e: bookmarks: switch from repo.changectx(&#039;.&#039;) to repo[&#039;.&#039;] (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3033?vs=7538&id=7570

REVISION DETAIL
  https://phab.mercurial-scm.org/D3033

AFFECTED FILES
  mercurial/bookmarks.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers, pulkit
Cc: mercurial-devel

Patch

diff --git a/mercurial/bookmarks.py b/mercurial/bookmarks.py
--- a/mercurial/bookmarks.py
+++ b/mercurial/bookmarks.py
@@ -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