##// END OF EJS Templates
bookmark: introduce a 'bookmarks' part...
Boris Feld -
r35261:af550720 default
parent child Browse files
Show More
@@ -1976,6 +1976,21 b' def handlepushkey(op, inpart):'
1976 kwargs[key] = inpart.params[key]
1976 kwargs[key] = inpart.params[key]
1977 raise error.PushkeyFailed(partid=str(inpart.id), **kwargs)
1977 raise error.PushkeyFailed(partid=str(inpart.id), **kwargs)
1978
1978
1979 @parthandler('bookmarks')
1980 def handlebookmark(op, inpart):
1981 """transmit bookmark information
1982
1983 The part contains binary encoded bookmark information. The bookmark
1984 information is applied as is to the unbundling repository. Make sure a
1985 'check:bookmarks' part is issued earlier to check for race condition in
1986 such update.
1987
1988 This behavior is suitable for pushing. Semantic adjustment will be needed
1989 for pull.
1990 """
1991 changes = bookmarks.binarydecode(inpart)
1992 op.repo._bookmarks.applychanges(op.repo, op.gettransaction(), changes)
1993
1979 @parthandler('phase-heads')
1994 @parthandler('phase-heads')
1980 def handlephases(op, inpart):
1995 def handlephases(op, inpart):
1981 """apply phases from bundle part to repo"""
1996 """apply phases from bundle part to repo"""
General Comments 0
You need to be logged in to leave comments. Login now