sapling icon indicating copy to clipboard operation
sapling copied to clipboard

feature request: tag support

Open conradludgate opened this issue 3 years ago • 2 comments

In my organisation, we use git tags for operation things. For instance, a git tag might trigger our CI create the deployment.

As far as I can tell, sapling doesn't provide any tagging functionality and I can't use regular git tag either

conradludgate avatar Nov 16 '22 14:11 conradludgate

This is currently undocumented. But sl treats remote/tags/* as tags. These commands are designed to work:

sl goto remote/tags/foo # checkout a tag, pull on demand
sl pull -B tags/foo # fetch a tag
sl push --to tags/foo # push to a (remote) tag

There is no support for local tags, though. The main motivation is similar to why there is no local main and remote/main at the same time - it causes confusion.

Would that work for your use-cases?

quark-zju avatar Nov 16 '22 15:11 quark-zju

Thank for the quick response. I do only need remote tags, so I'll try this out - I will abstract this into a command, but it would be nice if I could do this from the ISL view

conradludgate avatar Nov 16 '22 15:11 conradludgate