Re: [ANNOUNCE] GIT 0.99.9g

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Yaacov Akiba Slama <ya@...>
Cc: <git@...>
Date: Thursday, November 10, 2005 - 3:55 pm

Yaacov Akiba Slama <ya@slamail.org> writes:


I think it is reasonable to record both as parents, to make the
development history in branch_1 accessible from the trunk branch
after they are merged, and I do not think it is dangerous at
all.  It is just a regular merge which, when viewed from trunk
side of the history, creates a directory called 'new' at the top
level, and adds bunch of files there, and if you are viewing it
with rename/copy detection you may even notice that those
changes are mostly copy edits.

But the above example brings up an interesting question.
Subversion lets you copy freely and does not require the
developer to express machine-readably what that copy is about.
Also it lets copy partial trees.  So it is entirely plausible to
run your project like this:

	1. Repo has /trunk/i386/blah.c; i.e. 'ls' at the
           toplevel of the working tree shows 'i386' directory.

               /trunk/i386/blah.h

        2. Somebody wants to do x86-64 equivalent of existing
           thing, and starts preparing it by copying existing
           i386 thing, into his branch, and do development
           there.

		/trunk/i386/blah.c
                /branches/wip-x86-64/blah.c (copy from /trunk/i386)

        3. Later, that x86-64 equivalent matures, and gets
           merged into trunk:

		/trunk/i386/blah.c
		/trunk/x86-64/blah.c (merge back from /branches/wip-x86-64)
                /branches/wip-x86-64/blah.c (development ceased)

But it is also plausible to do this instead:

	2'. Instead of the above, you copy the whole thing

		/trunk/i386/blah.c
                /branches/wip/i386/blah.c (copy from /trunk)
                /branches/wip/x86-64/blah.c (then copy from /branches/wip/i386)

        3'. Instead of the above:

		/trunk/i386/blah.c (merge back from /branches/wip)
		/trunk/x86-64/blah.c (merge back from /branches/wip)
                /branches/wip/i386/blah.c (development ceased)
                /branches/wip/x86-64/blah.c (development ceased)

Do you need to handle the history resulting from these cases
differently when importing from subversion?  I have a feeling
that the user needs to tell what really happend for you to
handle this sensibly (tree root level is different), but I am
not offhand sure what the issues are.

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[ANNOUNCE] GIT 0.99.9g, Junio C Hamano, (Thu Nov 10, 4:14 am)
Re: [ANNOUNCE] GIT 0.99.9g, Jim Radford, (Thu Nov 10, 2:54 pm)
Re: [ANNOUNCE] GIT 0.99.9g, Andreas Ericsson, (Thu Nov 10, 4:30 pm)
Re: [ANNOUNCE] GIT 0.99.9g, Junio C Hamano, (Thu Nov 10, 4:48 pm)
Re: [ANNOUNCE] GIT 0.99.9g, Jim Radford, (Fri Nov 11, 2:23 pm)
Re: [ANNOUNCE] GIT 0.99.9g, H. Peter Anvin, (Thu Nov 10, 1:09 pm)
Re: [ANNOUNCE] GIT 0.99.9g, Johannes Schindelin, (Fri Nov 11, 10:19 am)
Re: [ANNOUNCE] GIT 0.99.9g, H. Peter Anvin, (Fri Nov 11, 1:46 pm)
Re: [ANNOUNCE] GIT 0.99.9g, Junio C Hamano, (Thu Nov 10, 1:44 pm)
Re: [ANNOUNCE] GIT 0.99.9g, H. Peter Anvin, (Fri Nov 11, 5:18 pm)
Re: [ANNOUNCE] GIT 0.99.9g, Linus Torvalds, (Thu Nov 10, 3:32 pm)
Re: [ANNOUNCE] GIT 0.99.9g, Linus Torvalds, (Thu Nov 10, 3:43 pm)
Re: [ANNOUNCE] GIT 0.99.9g, Petr Baudis, (Thu Nov 10, 2:03 pm)
Re: [ANNOUNCE] GIT 0.99.9g, Daniel Barkalow, (Thu Nov 10, 2:31 pm)
Re: [ANNOUNCE] GIT 0.99.9g, Junio C Hamano, (Thu Nov 10, 3:04 pm)
Re: [ANNOUNCE] GIT 0.99.9g, Daniel Barkalow, (Thu Nov 10, 3:09 pm)
Re: [ANNOUNCE] GIT 0.99.9g, Yaacov Akiba Slama, (Thu Nov 10, 5:54 am)
Re: [ANNOUNCE] GIT 0.99.9g, Junio C Hamano, (Thu Nov 10, 3:55 pm)
Re: [ANNOUNCE] GIT 0.99.9g, Jeff Garzik, (Thu Nov 10, 5:09 am)
Re: [ANNOUNCE] GIT 0.99.9g, Junio C Hamano, (Fri Nov 11, 2:37 pm)
Re: [ANNOUNCE] GIT 0.99.9g, Andreas Ericsson, (Sat Nov 12, 8:17 am)
Re: [ANNOUNCE] GIT 0.99.9g, Junio C Hamano, (Mon Nov 14, 3:46 am)
Re: [ANNOUNCE] GIT 0.99.9g, Petr Baudis, (Mon Nov 14, 5:32 am)
Re: [ANNOUNCE] GIT 0.99.9g, Andreas Ericsson, (Mon Nov 14, 5:23 am)
Re: [ANNOUNCE] GIT 0.99.9g, Junio C Hamano, (Mon Nov 14, 5:15 pm)
Re: [ANNOUNCE] GIT 0.99.9g, H. Peter Anvin, (Thu Nov 10, 1:13 pm)
Re: [ANNOUNCE] GIT 0.99.9g, Andreas Ericsson, (Thu Nov 10, 2:34 pm)
Re: [ANNOUNCE] GIT 0.99.9g, H. Peter Anvin, (Fri Nov 11, 5:17 pm)
Re: [ANNOUNCE] GIT 0.99.9g, Andreas Ericsson, (Sat Nov 12, 7:37 am)