ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] git-merge tree strategy
@ 2006-10-17  1:27 Alexey Tourbin
  2006-10-17  2:04 ` Alexey Tourbin
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Tourbin @ 2006-10-17  1:27 UTC (permalink / raw)
  To: devel

[-- Attachment #1: Type: text/plain, Size: 1244 bytes --]

При импорте с помощью parsecvs коммиты могут отличаться (например,
за счет модификации списка Authors), но соответствующие им деревья
одинаковые.

Теперь мне нужно слить два дерева: все коммиты разные, но все
деревья совпадают.

				  * new-cvs
				    * commitV
				    * commitU
				    * commitT
	* cvs			    * commitS
	  * commit9 -->	tree9	<-- * commitR
	  * commit8 --> tree8	<-- * commitQ
	  * commit7 --> tree7	<-- * commitP
	  .................................
	  * commit0 --> tree0	<-- * commitA
	  |			    |		
	 ---			   ---

Стратегия слияния recursive ищет общего предка по коммитам и не находит;
поэтому при заливании new-cvs в cvs фактически делается черти-что:
происходит откат на самое начало cvs и дальше патч-за-патчем применяются
коммиты из new-cvs.  Заканчивается это успешншо (потому что все патчи
совпадают), но получается совсем некрасиво.

Мне нужна стратегия, которая дойдет до commit9/commitR, увидит у них
одинаковое дерeво tree9 и пойдет раскручивать "как бы fast-worward",
вливая в cvs commitS..commitV.

Есть такая стратегия?

(Я понимаю, что можно сделать rebase, т.е. "насадить" commitS..commitV
прямо на бранч cvs.  Но это всё же ручная работа по нахождению общего
дерева.)

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-10-17  2:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-17  1:27 [devel] git-merge tree strategy Alexey Tourbin
2006-10-17  2:04 ` Alexey Tourbin

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git