The hgsubversion tagging schema.
罗勇刚(Yonggang Luo)
luoyonggang at gmail.com
Sat Aug 6 03:33:24 UTC 2011
At the current time, I implement an new NewMeta to competing with SvnMeta,
and also with new MetaHgEditor, AutoHgEditor, and convert_rev_meta
It's resident at https://bitbucket.org/dreamkxd/hgsubversion.svnmeta
Now it's leave the last step to finish it.
I have some options for tagging.
Every tag will have an real parent. that means, it's copy from is exist and
tracked after hgsubversion convert.
svn data
branchFirst copy from trunk
branchA copy from branchFirst
branchB copy from branchA
branchC copy from branchB
tagA copy from branchC
tagB copy from tagA
tagC copy from tagB
Option 1:
write the .tag file only in the first branch parent.
then the result is
branchC will tagged with tagA,tagB,tagC, never care about if branchC is
close
and branchA ,branchB ,trunk will be empty.
Option 2:
write the .tag file only in the first open branch parent.
then the result is
if branchC is open
branchC will tagged with tagA,tagB,tagC,
and BranchA,BranchB,trunk without tag
if only branchC is closed,
branchC without tag
branchB tagged with tagA tagB tagC
branchA and trunk without tag
if branchC and branchB is closed, other is open
branchC branchB without tag
branchA tagged with tagA tagB tagC
trunk without tag
Option 3:
write the .tag file all of tag's branch parents.
So, with all conditions
each one of (branchC, branchB, branchA, trunk) will tagged with
tagA,tagB,tagC
Option 4:
write the .tag file all of tag's open branch parents.
example:
if trunk and branchB is open then
each one of (trunk and branchB) will tagged with tagA,tagB,tagC
if only branchA is open then:
only branchA will tagged with tagA,tagB,tagC
So, which schema you'd prefer?(Option 1,2,3,4?)
--
此致
礼
罗勇刚
Yours
sincerely,
Yonggang Luo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20110806/965aa8ec/attachment-0002.html>
More information about the Mercurial
mailing list