Show More
@@ -953,15 +953,12 def addbookmarks(repo, tr, names, rev=No | |||
|
953 | 953 | cur = repo[b'.'].node() |
|
954 | 954 | newact = None |
|
955 | 955 | changes = [] |
|
956 | hiddenrev = None | |
|
957 | 956 | |
|
958 | tgt = cur | |
|
959 | 957 | # unhide revs if any |
|
960 | 958 | if rev: |
|
961 | 959 | repo = scmutil.unhidehashlikerevs(repo, [rev], b'nowarn') |
|
960 | ||
|
962 | 961 |
|
|
963 | if ctx.hidden(): | |
|
964 | hiddenrev = ctx.hex()[:12] | |
|
965 | 962 |
|
|
966 | 963 | |
|
967 | 964 | for mark in names: |
@@ -979,11 +976,11 def addbookmarks(repo, tr, names, rev=No | |||
|
979 | 976 | if not changes: |
|
980 | 977 | return |
|
981 | 978 | |
|
982 |
if hidden |
|
|
983 |
repo.ui.warn(_(b"bookmarking hidden changeset %s\n") % |
|
|
979 | if ctx.hidden(): | |
|
980 | repo.ui.warn(_(b"bookmarking hidden changeset %s\n") % ctx.hex()[:12]) | |
|
984 | 981 | |
|
985 | 982 | if ctx.obsolete(): |
|
986 |
msg = obsutil._getfilteredreason(repo, |
|
|
983 | msg = obsutil._getfilteredreason(repo, ctx.hex()[:12], ctx) | |
|
987 | 984 | repo.ui.warn(b"(%s)\n" % msg) |
|
988 | 985 | |
|
989 | 986 | marks.applychanges(repo, tr, changes) |
General Comments 0
You need to be logged in to leave comments.
Login now