سؤال

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