Show More
@@ -85,7 +85,8 b' def buildmetadata(ctx):' | |||
|
85 | 85 | cmdutil.show_changeset(repo.ui, repo, opts).show(ctx) |
|
86 | 86 | ltags, dist = repo.ui.popbuffer().split('\n') |
|
87 | 87 | ltags = ltags.split(':') |
|
88 | changessince = len(repo.revs('only(.,%s)', ltags[0])) | |
|
88 | # XXX: ctx.rev() needs to be handled differently with wdir() | |
|
89 | changessince = len(repo.revs('only(%d,%s)', ctx.rev(), ltags[0])) | |
|
89 | 90 | tags = ''.join('latesttag: %s\n' % t for t in ltags) |
|
90 | 91 | tags += 'latesttagdistance: %s\n' % dist |
|
91 | 92 | tags += 'changessincelatesttag: %s\n' % changessince |
@@ -2012,6 +2012,16 b' Test --follow and forward --rev' | |||
|
2012 | 2012 | | |
|
2013 | 2013 | o 0 add a |
|
2014 | 2014 | |
|
2015 | $ hg archive -r 7 archive | |
|
2016 | $ grep changessincelatesttag archive/.hg_archival.txt | |
|
2017 | changessincelatesttag: 1 | |
|
2018 | $ rm -r archive | |
|
2019 | ||
|
2020 | changessincelatesttag with no prior tag | |
|
2021 | $ hg archive -r 4 archive | |
|
2022 | $ grep changessincelatesttag archive/.hg_archival.txt | |
|
2023 | changessincelatesttag: 5 | |
|
2024 | ||
|
2015 | 2025 | $ hg export 'all()' |
|
2016 | 2026 | # HG changeset patch |
|
2017 | 2027 | # User test |
General Comments 0
You need to be logged in to leave comments.
Login now