topic: allow specifying current topic using period
3 unresolved threads
3 unresolved threads
Compare changes
+ 26
− 0
@@ -410,3 +410,29 @@ Changing topic on secret changesets
This means hg topic . --rev <revspec>
will amend the revs with
current active topic. This would be useful in general.
Also, it can be provided as an "explicit" alternative to hg amend
to
change the topic of parent with current active topic.
Closes #44
Doesn't this look somewhat confusing because
.
here is not liketopic(.)
, but more liketopic(wdir())
? And I'm not even sure since when plain.
is not only "current revision", but also "current whatever depending on context".Also reminds me of
.
usage in hg bookmarks (that's never good). There, at least, it was a possible argument to --rename, --delete or --list. Without a flag like that,hg topic .
looks like it could be equivalent tohg topic --rev .
until you see that there's already --rev there.So I'd say I'm -0 on this feature. I'd rather keep
.
meaning "current revision" only.