ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Artem Zolochevskiy <az@zolochevskie.net>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] попытка познакомиться с git
Date: Sat, 04 Nov 2006 11:02:20 +0200
Message-ID: <eihl3d$6bm$1@sea.gmane.org> (raw)
In-Reply-To: <20061104110236.GA16554@tacit.myxomop.com>

Kirill Maslinsky wrote:

> а какой эффект будет, если в некий новый <dest> сделать cvsimport
> -o cvs -i а потом git-checkout cvs ?

Ткут я не совсем понял, что ты сказал
 
> есть ли уверенность, что из  cvs вообще было что-то взято?

Да есть
судя по git log, git diff похже, что из cvs всё забралось
но вот где сами данные - загадка. ну не вручную же они переносятся.

может банально баг?
в пользу этого говорит к примеру то что я не поленился забрать более раннюю
версию git -1.3.3  c офиц. сайта. в нем был git-cvsimport.perl - Так вот он
отработал как и ожидается. все данные на месте.
может действительно просто баг? хотя я, конечно, не уверен. Ибо просто не
знаю что должно быть. Логика подсказывает что, git-cvsimport должен взять
проект из cvs (сами файлы в их cvs состоянии), запихнуть его, как я понял,
в бранч origin + сконвертить log. Но вот что-то данных я так и не нахожу.

Спецы по git - не дайте пропасть :-), на первом же шаге знакомства с git.
Может не поленится кто быстренько проверить

делаем cvs
[artem@alt ~]$ cd /tmp
[artem@alt tmp]$ mkdir test
[artem@alt tmp]$ cd test
[artem@alt test]$ cvs commit -l .
cvs commit: Examining .
cvs commit: in directory .:
[artem@alt test]$ mkdir testcvsrepo
[artem@alt test]$ cvs add testcvsrepo
Directory /home/cvs/cvsroot/testcvsrepo added to the repository
[artem@alt test]$ cd testcvsrepo/
[artem@alt testcvsrepo]$ echo "bla bla" > file.txt
[artem@alt testcvsrepo]$ cvs add file.txt
cvs add: scheduling file `file.txt' for addition
cvs add: use 'cvs commit' to add this file permanently
[artem@alt testcvsrepo]$ cvs commit -m "added file.txt"
cvs commit: Examining .
RCS file: /home/cvs/cvsroot/testcvsrepo/file.txt,v
done
Checking in file.txt;
/home/cvs/cvsroot/testcvsrepo/file.txt,v  <--  file.txt
initial revision: 1.1
done
[artem@alt testcvsrepo]$ echo "blu blu" >> file.txt
[artem@alt testcvsrepo]$ cvs commit -m "added blu blu to file.txt"
cvs commit: Examining .
Checking in file.txt;
/home/cvs/cvsroot/testcvsrepo/file.txt,v  <--  file.txt
new revision: 1.2; previous revision: 1.1
done

готово
импортируем в git

[artem@alt testcvsrepo]$ cd ..
[artem@alt test]$ git-cvsimport -C testgitrepo testcvsrepo
Committing initial tree 26561848f90dbca4bbb93f17b2a95cfe6962bea9
[artem@alt test]$ cd testgitrepo/
[artem@alt testgitrepo]$ ls
а где file.txt? :(
мржет в бранчах прячется?
[artem@alt testgitrepo]$ git branch
* master
  origin
[artem@alt testgitrepo]$ git checkout origin
[artem@alt testgitrepo]$ ls
не нету :(
[artem@alt testgitrepo]$ git checkout master
[artem@alt testgitrepo]$ ls
и тут нету :(
[artem@alt testgitrepo]$ git log
commit 27afe04f526a8e868e3a8fb8a70392c0a8c8edea
Author: artem <artem>
Date:   Sat Nov 4 08:52:21 2006 +0000

    added blu blu to file.txt

commit 4a0d34caf6d193fba8855459e4a980c2734d5ddf
Author: artem <artem>
Date:   Sat Nov 4 08:51:52 2006 +0000

    added file.txt

лог есть
[artem@alt testgitrepo]$ git diff
diff --git a/file.txt b/file.txt
deleted file mode 100644
index f63b210..0000000
--- a/file.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-bla bla
-blu blu

и даже diff есть

[artem@alt testgitrepo]$ git status
# Changed but not updated:
#   (use git-update-index to mark for commit)
#
#       deleted: file.txt
#
nothing to commit

Да где ж он спрятался этот file.txt?

Ничего не понимаю. Или я вообще что-то неверно делаю?

-- 
Artem Zolochevskiy
Kaliningrad, Russia
JID: az@jabber.org



  reply	other threads:[~2006-11-04  9:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-11-03 22:52 Artem Zolochevskiy
2006-11-03 23:45 ` Kirill Maslinsky
2006-11-04  5:34   ` Artem Zolochevskiy
2006-11-04 11:02     ` Kirill Maslinsky
2006-11-04  9:02       ` Artem Zolochevskiy [this message]
2006-11-04 16:28         ` Michael Shigorin
2006-11-04 16:58           ` Artem Zolochevskiy
2006-11-06  4:39             ` Alexey Voinov

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='eihl3d$6bm$1@sea.gmane.org' \
    --to=az@zolochevskie.net \
    --cc=sisyphus@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 Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

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


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