ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
* [sisyphus] попытка познакомиться с git
@ 2006-11-03 22:52 Artem Zolochevskiy
  2006-11-03 23:45 ` Kirill Maslinsky
  0 siblings, 1 reply; 8+ messages in thread
From: Artem Zolochevskiy @ 2006-11-03 22:52 UTC (permalink / raw)
  To: sisyphus

hi all

Итак, выкроив время, установил git.
Нужно сказать что первое с ним знакомство закончилось со счётом 1:0 в его
пользу :-)

Что успел - прочитать tutorial.html + попробовать примеры оттуда.
Далее принялся за cvs-migration.html на чём всё и закончилось :( Спасайте.

делаю как и написано
git cvsimport -v -d <cvsroot> -C <destination> <module>

в итоге получаю каталог <destination> в котором .git
собственно вопрос - это так и задумано? а где ж файлики из cvs вытащенные?
ls в <destination> пустота :(
git checkout master - пустота
git checkout origin - пустота
git status - говорит, что все файлы deleted:
(оно и понятно их же нет в <destination>)

Так вот собственно, кто не прав?

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



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

* Re: [sisyphus] попытка познакомиться с git
  2006-11-03 22:52 [sisyphus] попытка познакомиться с git Artem Zolochevskiy
@ 2006-11-03 23:45 ` Kirill Maslinsky
  2006-11-04  5:34   ` Artem Zolochevskiy
  0 siblings, 1 reply; 8+ messages in thread
From: Kirill Maslinsky @ 2006-11-03 23:45 UTC (permalink / raw)
  To: sisyphus

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

> делаю как и написано
> git cvsimport -v -d <cvsroot> -C <destination> <module>
Эта команда была выполнена больше одного раза для данного <destination>?
Удалить <destination> (чтобы в нем .git не осталось) и попробовать снова?

> в итоге получаю каталог <destination> в котором .git
> собственно вопрос - это так и задумано? а где ж файлики из cvs вытащенные?
> ls в <destination> пустота :(
> git checkout master - пустота
> git checkout origin - пустота
> git status - говорит, что все файлы deleted:
> (оно и понятно их же нет в <destination>)
> 
> Так вот собственно, кто не прав?

-- 
Kirill Maslinsky
ALT Linux Documentation Team
http://heap.altlinux.ru

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

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

* Re: [sisyphus] попытка познакомиться с git
  2006-11-03 23:45 ` Kirill Maslinsky
@ 2006-11-04  5:34   ` Artem Zolochevskiy
  2006-11-04 11:02     ` Kirill Maslinsky
  0 siblings, 1 reply; 8+ messages in thread
From: Artem Zolochevskiy @ 2006-11-04  5:34 UTC (permalink / raw)
  To: sisyphus

Kirill Maslinsky wrote:

>> делаю как и написано
>> git cvsimport -v -d <cvsroot> -C <destination> <module>
> Эта команда была выполнена больше одного раза для данного <destination>?

да. <destination> вообще не существовало перед началом выполнения команды.

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



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

* Re: [sisyphus] попытка познакомиться с git
  2006-11-04 11:02     ` Kirill Maslinsky
@ 2006-11-04  9:02       ` Artem Zolochevskiy
  2006-11-04 16:28         ` Michael Shigorin
  0 siblings, 1 reply; 8+ messages in thread
From: Artem Zolochevskiy @ 2006-11-04  9:02 UTC (permalink / raw)
  To: sisyphus

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



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

* Re: [sisyphus] попытка познакомиться с git
  2006-11-04  5:34   ` Artem Zolochevskiy
@ 2006-11-04 11:02     ` Kirill Maslinsky
  2006-11-04  9:02       ` Artem Zolochevskiy
  0 siblings, 1 reply; 8+ messages in thread
From: Kirill Maslinsky @ 2006-11-04 11:02 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

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

> >> делаю как и написано
> >> git cvsimport -v -d <cvsroot> -C <destination> <module>
> > Эта команда была выполнена больше одного раза для данного <destination>?
> 
> да. <destination> вообще не существовало перед началом выполнения команды.
я просто подозревал, что ты запустил cvsimport по уже созданному репозиторию, 
а это нужно делать через -o ...

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

есть ли уверенность, что из  cvs вообще было что-то взято?

-- 
Kirill Maslinsky
ALT Linux Documentation Team
http://heap.altlinux.ru

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

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

* Re: [sisyphus] попытка познакомиться с git
  2006-11-04  9:02       ` Artem Zolochevskiy
@ 2006-11-04 16:28         ` Michael Shigorin
  2006-11-04 16:58           ` Artem Zolochevskiy
  0 siblings, 1 reply; 8+ messages in thread
From: Michael Shigorin @ 2006-11-04 16:28 UTC (permalink / raw)
  To: sisyphus

On Sat, Nov 04, 2006 at 11:02:20AM +0200, Artem Zolochevskiy wrote:
> > а какой эффект будет, если в некий новый <dest> сделать cvsimport
> > -o cvs -i а потом git-checkout cvs ?
> Ткут я не совсем понял, что ты сказал
> > есть ли уверенность, что из  cvs вообще было что-то взято?
> Да есть
> судя по git log, git diff похже, что из cvs всё забралось
> но вот где сами данные - загадка. ну не вручную же они переносятся.

Если правильно понял, то в .git, не чекаутнутые.  Надо

git checkout

в dest (бишь каталоге, который содержит .git/)

-- 
 ---- WBR, Michael Shigorin <mike@altlinux.ru>
  ------ Linux.Kiev http://www.linux.kiev.ua/


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

* Re: [sisyphus] попытка познакомиться с git
  2006-11-04 16:28         ` Michael Shigorin
@ 2006-11-04 16:58           ` Artem Zolochevskiy
  2006-11-06  4:39             ` Alexey Voinov
  0 siblings, 1 reply; 8+ messages in thread
From: Artem Zolochevskiy @ 2006-11-04 16:58 UTC (permalink / raw)
  To: sisyphus

Michael Shigorin wrote:

> Если правильно понял, то в .git, не чекаутнутые.  Надо
> 
> git checkout
> 
> в dest (бишь каталоге, который содержит .git/)
> 

делал, результат - ноль.

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



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

* Re: [sisyphus] попытка познакомиться с git
  2006-11-04 16:58           ` Artem Zolochevskiy
@ 2006-11-06  4:39             ` Alexey Voinov
  0 siblings, 0 replies; 8+ messages in thread
From: Alexey Voinov @ 2006-11-06  4:39 UTC (permalink / raw)
  To: ALT Linux Sisyphus discussion list

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

Artem Zolochevskiy wrote
> > Если правильно понял, то в .git, не чекаутнутые.  Надо
> > 
> > git checkout
> > 
> > в dest (бишь каталоге, который содержит .git/)
> делал, результат - ноль.
Я почти уверен, что если спросить git status, то он покажет все файлы из
cvs как deleted (или оно removed?). git reset меня не раз спасал в
подобной ситуации. :)

-- 
Best Regards!
Alexey Voinov
	     
voins@voins.program.ru
voins@altlinux.ru


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

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

end of thread, other threads:[~2006-11-06  4:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-11-03 22:52 [sisyphus] попытка познакомиться с git 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
2006-11-04 16:28         ` Michael Shigorin
2006-11-04 16:58           ` Artem Zolochevskiy
2006-11-06  4:39             ` Alexey Voinov

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