Creating a bundle with bookmarks and obsolete-markers from Python-code
Pierre-Yves David
pierre-yves.david at ens-lyon.org
Sun Feb 21 14:05:17 UTC 2016
On 02/21/2016 02:40 PM, Arne Babenhauserheide wrote:
> Hi,
>
> How can I create a bundle-file with bookmarks and obsolete-markers from
> Python-code? I’m maintaining the Infocalypse extension¹ which uses
> bundles to exchange revisions. Its most important shortcoming is that it
> currently does not support bookmarks or obsolete markers.
>
> To change this without too extensive rewriting, I need to create
> bundle-files which contain information about bookmarks and
> obsolete-markers: If I give it to someone else, pulling from the bundle
> needs to yield the additional bookmarks and obsolete-markers.
Adding obsolescence marker is easy. Bundle2 already support obsolescence
markers part, you can just add one with the content you need. I can help
you compute/know what are the marker you need to include in a bundle if
you tell me more about what you are doing.
Bookmark is more stricky. We have a pushkey part for bundle2 but it is
"imperative" not "descriptive", Pushkey convey a movement from old
location A to new location B. So you can't store a bookmark "location",
juste a movement. Maybe it fits your need.
Otherwise I would be very happy to have a new descriptive part for bookmark.
Cheers,
--
Pierre-Yves David
More information about the Mercurial
mailing list