ALT Linux Team development discussions
 help / color / mirror / Atom feed
From: Artem Zolochevskiy <artem.zolochevskiy@gmail.com>
To: ALT Linux Team development discussions <devel@lists.altlinux.org>
Subject: Re: [devel] import hg to git
Date: Thu, 21 May 2009 13:23:53 +0300
Message-ID: <774a4f4a0905210323m25f62b5aw899ba3659ed37254@mail.gmail.com> (raw)
In-Reply-To: <20090521092302.GA31912@altlinux.org>

21 мая 2009 г. 12:23 пользователь Alexey I. Froloff
<raorn@altlinux.org> написал:
> * Artem Zolochevskiy <artem.zolochevskiy@> [090521 11:32]:
>> >> > Успешно импортировал с помощью http://repo.or.cz/w/fast-export.git
>> >> Я тоже ним успешно импортировал. Но только один раз. Обновлять ним не
>> >> получается, судя по всему там есть неприятная бага.
>> > Он ни разу не инкрементальный by design.
>> А можете пояснить? Периодический hg-fast-export.sh -r <repo> не
>> накатывает появившиеся в <repo> со времени последнего подхода
>> changeset-ы?
> Нет.  Оно импортирует всё сначала, цепляя коммиты на HEAD.
>

хм... странно.
попробовал. всё вроде нормально. при очередном  hg-fast-export.sh -r
просто доставились новые коммиты. или я что-то делаю не так?

mkdir hg
cd hg
hg init
echo one > test.txt
hg add
hg commit -m "first"
echo two >> test.txt
hg commit -m "second"

mkdir ../git
cd ../git
git init
hg-fast-export.sh -r ../hg
git log --oneline
4ac3a00 second
343852f first

cd ../hg
echo 3 >> test.txt
hg commit -m "third"

cd ../git
hg-fast-export.sh -r ../hg
git log --oneline
774161d third
4ac3a00 second
343852f first

-- 
Артём Золочевский

  reply	other threads:[~2009-05-21 10:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-15 11:25 Boris Savelev
2009-05-15 11:36 ` Boris Savelev
2009-05-15 12:49   ` Led
2009-05-15 14:42     ` Alexey I. Froloff
2009-05-15 16:28       ` Led
2009-05-21  7:31       ` Artem Zolochevskiy
2009-05-21  9:23         ` Alexey I. Froloff
2009-05-21 10:23           ` Artem Zolochevskiy [this message]
2009-05-22 19:34             ` Alexey I. Froloff
2009-05-15 13:56 ` Andrey Rahmatullin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=774a4f4a0905210323m25f62b5aw899ba3659ed37254@mail.gmail.com \
    --to=artem.zolochevskiy@gmail.com \
    --cc=devel@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

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