Details
Details
- Reviewers
- None
- Group Reviewers
hg-reviewers - Commits
- rHG9fd7710d9ae2: exchange: convert bookmark nodes from hex to bin ASAP
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
| hg-reviewers |
| Lint Skipped |
| Unit Tests Skipped |
| Path | Packages | |||
|---|---|---|---|---|
| M | mercurial/exchange.py (3 lines) |
| Commit | Parents | Author | Summary | Date |
|---|---|---|---|---|
| ff1e3c8ca816 | 4a75f99fdf26 | Valentin Gatien-Baron | Sep 8 2019, 8:26 PM |
| Status | Author | Revision | |
|---|---|---|---|
| Closed | valentin.gatienbaron | ||
| Closed | valentin.gatienbaron | ||
| Closed | valentin.gatienbaron |
| repo = pushop.repo.unfiltered() | repo = pushop.repo.unfiltered() | ||||
| remote = pushop.remote | remote = pushop.remote | ||||
| ui.debug("checking for updated bookmarks\n") | ui.debug("checking for updated bookmarks\n") | ||||
| ancestors = () | ancestors = () | ||||
| if pushop.revs: | if pushop.revs: | ||||
| revnums = pycompat.maplist(repo.changelog.rev, pushop.revs) | revnums = pycompat.maplist(repo.changelog.rev, pushop.revs) | ||||
| ancestors = repo.changelog.ancestors(revnums, inclusive=True) | ancestors = repo.changelog.ancestors(revnums, inclusive=True) | ||||
| remotebookmark = listkeys(remote, 'bookmarks') | remotebookmark = bookmod.unhexlifybookmarks(listkeys(remote, 'bookmarks')) | ||||
| explicit = {repo._bookmarks.expandname(bookmark) | explicit = {repo._bookmarks.expandname(bookmark) | ||||
| for bookmark in pushop.bookmarks} | for bookmark in pushop.bookmarks} | ||||
| remotebookmark = bookmod.unhexlifybookmarks(remotebookmark) | |||||
| comp = bookmod.comparebookmarks(repo, repo._bookmarks, remotebookmark) | comp = bookmod.comparebookmarks(repo, repo._bookmarks, remotebookmark) | ||||
| return _processcompared(pushop, ancestors, explicit, remotebookmark, comp) | return _processcompared(pushop, ancestors, explicit, remotebookmark, comp) | ||||
| def _processcompared(pushop, pushed, explicit, remotebms, comp): | def _processcompared(pushop, pushed, explicit, remotebms, comp): | ||||
| """take decision on bookmarks to push to the remote repo | """take decision on bookmarks to push to the remote repo | ||||
| Exists to help extensions alter this behavior. | Exists to help extensions alter this behavior. | ||||
| """ | """ | ||||