Show More
@@ -2304,7 +2304,13 b' def bookmarkrevs(repo, mark):' | |||
|
2304 | 2304 | |
|
2305 | 2305 | If the bookmarked revision isn't a head, an empty set will be returned. |
|
2306 | 2306 | """ |
|
2307 | return repo.revs( | |
|
2307 | return repo.revs(format_bookmark_revspec(mark)) | |
|
2308 | ||
|
2309 | ||
|
2310 | def format_bookmark_revspec(mark): | |
|
2311 | """Build a revset expression to select revisions reachable by a given | |
|
2312 | bookmark""" | |
|
2313 | return revsetlang.formatspec( | |
|
2308 | 2314 | b"ancestors(bookmark(%s)) - " |
|
2309 | 2315 | b"ancestors(head() and not bookmark(%s)) - " |
|
2310 | 2316 | b"ancestors(bookmark() and not bookmark(%s))", |
General Comments 0
You need to be logged in to leave comments.
Login now