Show More
@@ -46,8 +46,9 b' def getscratchbranchparts(repo, peer, ou' | |||||
46 | params['bookmark'] = bookmark |
|
46 | params['bookmark'] = bookmark | |
47 | # 'prevbooknode' is necessary for pushkey reply part |
|
47 | # 'prevbooknode' is necessary for pushkey reply part | |
48 | params['bookprevnode'] = '' |
|
48 | params['bookprevnode'] = '' | |
49 |
|
|
49 | bookmarks = repo._bookmarks | |
50 | params['bookprevnode'] = repo[bookmark].hex() |
|
50 | if bookmark in bookmarks: | |
|
51 | params['bookprevnode'] = bookmarks.changectx(bookmark).hex() | |||
51 |
|
52 | |||
52 | # Do not send pushback bundle2 part with bookmarks if remotenames extension |
|
53 | # Do not send pushback bundle2 part with bookmarks if remotenames extension | |
53 | # is enabled. It will be handled manually in `_push()` |
|
54 | # is enabled. It will be handled manually in `_push()` |
General Comments 0
You need to be logged in to leave comments.
Login now