문제

I want to write an application which identifies the current changesets and tags them. I do know we can get the changeset by using hg identify.

Once I get the changeset, is there a way I can tag it?

Thanks

도움이 되었습니까?

해결책

From the documentation:

hg tag [-f] [-l] [-m TEXT] [-d DATE] [-u USER] [-r REV] NAME...

So this should work:

$ hg tag -r revision tagname

다른 팁

$ hg tag -r changeset tagname

Thanks

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top