equal
deleted
inserted
replaced
861 |
861 |
862 def _bookmarksupdater(repo, oldid): |
862 def _bookmarksupdater(repo, oldid): |
863 """Return a callable update(newid) updating the current bookmark |
863 """Return a callable update(newid) updating the current bookmark |
864 and bookmarks bound to oldid to newid. |
864 and bookmarks bound to oldid to newid. |
865 """ |
865 """ |
866 bm = bmactive(repo) |
|
867 def updatebookmarks(newid): |
866 def updatebookmarks(newid): |
868 dirty = False |
867 dirty = False |
869 if bm: |
|
870 repo._bookmarks[bm] = newid |
|
871 dirty = True |
|
872 oldbookmarks = repo.nodebookmarks(oldid) |
868 oldbookmarks = repo.nodebookmarks(oldid) |
873 if oldbookmarks: |
869 if oldbookmarks: |
874 for b in oldbookmarks: |
870 for b in oldbookmarks: |
875 repo._bookmarks[b] = newid |
871 repo._bookmarks[b] = newid |
876 dirty = True |
872 dirty = True |