Re: [Libvir] read-only git mirror of libvirt CVS repository

2007-10-26 Thread Jim Meyering
Jim Paris [EMAIL PROTECTED] wrote:
 Jim Meyering wrote:
 I've set up an automatically-sync'd git mirror of the libvirt.org's
 libvirt CVS repository.  The mirror is updated approximately every
 30 minutes.  You can view the change-set summary via this URL:

 http://git.et.redhat.com/?p=libvirt.git

 You can get a copy of the repository with the following command:
 (this uses the efficient git:// protocol, and is sort of analogous
 to CVS pserver, in that you get anonymous, read-only access)

 git clone git://et.redhat.com/libvirt

 Hi Jim,

 Thanks, now I don't have to keep a local mirror anymore :)
 It seems that your mirror is missing tags, though, according to

Hi Jim,

Thanks for letting me know.  git's default hooks/update prohibits
pushing such unannotated tags by default, so although git-cvsimport
did create them, when I pushed the result to the public repo, they were
being denied.  I've changed the corresponding config variable to permit
it, so the tags are there, now.

 git tags -l.  My local mirror had tags and was created with
git-cvsimport -o master -d $CVSROOT -v -k -m -i libvirt

Thanks.  I've added -k, since libvirt has at least 8 files with $Id[*],
but don't seem to need the '-o master' -- at least not the way I'm pushing
the result afterwards.  Do you need it, with a recent version of git?

 Also, perhaps some .gitignore files could be added upstream now?
 Patch below.

[patch adding many individual .gitignore files]

I suppose you know that you can do the same thing with a single
top-level .gitignore file.  While such consolidation makes the result
less maintainable, it might be more palatable for committers who don't
use any dVCS.

[*] It'd be nice to remove the $Id strings.
Even in CVS, with no branches, they tend to cause nothing but trouble.

--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [Libvir] read-only git mirror of libvirt CVS repository

2007-10-26 Thread Richard W.M. Jones

Jim Paris wrote:

Also, perhaps some .gitignore files could be added upstream now?
Patch below.


I had a patch which added a single top level .gitignore file before, but 
it was rejected.  I think we should add it, but it's only necessary to 
have a single one at the top level of the tree IIRC.


Rich.

--
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom.  Registered in
England and Wales under Company Registration No. 03798903


smime.p7s
Description: S/MIME Cryptographic Signature
--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [Libvir] read-only git mirror of libvirt CVS repository

2007-10-26 Thread Daniel P. Berrange
On Fri, Oct 26, 2007 at 09:20:27AM +0100, Richard W.M. Jones wrote:
 Jim Paris wrote:
 Also, perhaps some .gitignore files could be added upstream now?
 Patch below.
 
 I had a patch which added a single top level .gitignore file before, but 
 it was rejected.  I think we should add it, but it's only necessary to 
 have a single one at the top level of the tree IIRC.

I've no objections to adding a top-level .gitignore to the CVS repo.


Dan.
-- 
|=- Red Hat, Engineering, Emerging Technologies, Boston.  +1 978 392 2496 -=|
|=-   Perl modules: http://search.cpan.org/~danberr/  -=|
|=-   Projects: http://freshmeat.net/~danielpb/   -=|
|=-  GnuPG: 7D3B9505   F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505  -=| 

--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [Libvir] read-only git mirror of libvirt CVS repository

2007-10-26 Thread Daniel Veillard
On Fri, Oct 26, 2007 at 09:20:27AM +0100, Richard W.M. Jones wrote:
 Jim Paris wrote:
 Also, perhaps some .gitignore files could be added upstream now?
 Patch below.
 
 I had a patch which added a single top level .gitignore file before, but 
 it was rejected.  I think we should add it, but it's only necessary to 
 have a single one at the top level of the tree IIRC.

  okay, go for it :-)

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard  | virtualization library  http://libvirt.org/
[EMAIL PROTECTED]  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/

--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [Libvir] read-only git mirror of libvirt CVS repository

2007-10-26 Thread Jim Paris
Jim Paris wrote:
 Jim Meyering wrote:
  Thanks.  I've added -k, since libvirt has at least 8 files with $Id[*],
  but don't seem to need the '-o master' -- at least not the way I'm pushing
  the result afterwards.  Do you need it, with a recent version of git?
 
 Probably not.  I was new to git-cvsimport and don't know why I added it :)

Actually I take that back, it seems you do.  Dan's latest commit
didn't make it to your master branch, only origin:
  http://git.et.redhat.com/?p=libvirt.git;a=shortlog
  http://git.et.redhat.com/?p=libvirt.git;a=shortlog;h=origin

-jim

--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


[Libvir] read-only git mirror of libvirt CVS repository

2007-10-25 Thread Jim Meyering
I've set up an automatically-sync'd git mirror of the libvirt.org's
libvirt CVS repository.  The mirror is updated approximately every
30 minutes.  You can view the change-set summary via this URL:

http://git.et.redhat.com/?p=libvirt.git

You can get a copy of the repository with the following command:
(this uses the efficient git:// protocol, and is sort of analogous
to CVS pserver, in that you get anonymous, read-only access)

git clone git://et.redhat.com/libvirt

That command creates a libvirt/ directory.
It's not big, just 4.2MB for the .git/ repository (containing
the entire history) and the usual 10MB of code, docs and .po files.

Note, if you're new to git, you typically run git clone only
once, initially, and from then on, you cd into the directory and
download/merge the latest sources via git pull.  But note that
if you do development or otherwise modify a version-controlled
file, your next git pull won't work if the pull would have
to merge changes to one of the modified files.

--
Libvir-list mailing list
Libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


Re: [Libvir] read-only git mirror of libvirt CVS repository

2007-10-25 Thread Jim Paris
Jim Meyering wrote:
 I've set up an automatically-sync'd git mirror of the libvirt.org's
 libvirt CVS repository.  The mirror is updated approximately every
 30 minutes.  You can view the change-set summary via this URL:
 
 http://git.et.redhat.com/?p=libvirt.git
 
 You can get a copy of the repository with the following command:
 (this uses the efficient git:// protocol, and is sort of analogous
 to CVS pserver, in that you get anonymous, read-only access)
 
 git clone git://et.redhat.com/libvirt

Hi Jim,

Thanks, now I don't have to keep a local mirror anymore :)
It seems that your mirror is missing tags, though, according to
git tags -l.  My local mirror had tags and was created with
   git-cvsimport -o master -d $CVSROOT -v -k -m -i libvirt

 Note, if you're new to git, you typically run git clone only
 once, initially, and from then on, you cd into the directory and
 download/merge the latest sources via git pull.  But note that
 if you do development or otherwise modify a version-controlled
 file, your next git pull won't work if the pull would have
 to merge changes to one of the modified files.

FWIW, I've found this to do the right thing in that case:
  git fetch
  git rebase remotes/origin/HEAD

Also, perhaps some .gitignore files could be added upstream now?
Patch below.

-jim

From c8e2192c4e209908f37fbd02d8fd5b5437d2152b Mon Sep 17 00:00:00 2001
From: Jim Paris [EMAIL PROTECTED]
Date: Mon, 13 Aug 2007 11:23:55 -0400
Subject: [PATCH] Ignore generated files (git)

---
 .gitignore  |   39 +++
 docs/.gitignore |3 +++
 docs/devhelp/.gitignore |3 +++
 docs/examples/.gitignore|7 +++
 docs/examples/python/.gitignore |2 ++
 include/.gitignore  |2 ++
 include/libvirt/.gitignore  |2 ++
 po/.gitignore   |   15 +++
 proxy/.gitignore|5 +
 python/.gitignore   |   13 +
 python/tests/.gitignore |2 ++
 qemud/.gitignore|9 +
 scripts/.gitignore  |2 ++
 src/.gitignore  |   11 +++
 tests/.gitignore|   18 ++
 tests/confdata/.gitignore   |2 ++
 tests/sexpr2xmldata/.gitignore  |2 ++
 tests/virshdata/.gitignore  |2 ++
 tests/xencapsdata/.gitignore|2 ++
 tests/xmconfigdata/.gitignore   |2 ++
 tests/xml2sexprdata/.gitignore  |2 ++
 21 files changed, 145 insertions(+), 0 deletions(-)
 create mode 100644 .gitignore
 create mode 100644 docs/.gitignore
 create mode 100644 docs/devhelp/.gitignore
 create mode 100644 docs/examples/.gitignore
 create mode 100644 docs/examples/python/.gitignore
 create mode 100644 include/.gitignore
 create mode 100644 include/libvirt/.gitignore
 create mode 100644 po/.gitignore
 create mode 100644 proxy/.gitignore
 create mode 100644 python/.gitignore
 create mode 100644 python/tests/.gitignore
 create mode 100644 qemud/.gitignore
 create mode 100644 scripts/.gitignore
 create mode 100644 src/.gitignore
 create mode 100644 tests/.gitignore
 create mode 100644 tests/confdata/.gitignore
 create mode 100644 tests/sexpr2xmldata/.gitignore
 create mode 100644 tests/virshdata/.gitignore
 create mode 100644 tests/xencapsdata/.gitignore
 create mode 100644 tests/xmconfigdata/.gitignore
 create mode 100644 tests/xml2sexprdata/.gitignore

diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000..dd2a475
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,39 @@
+*.o
+*.lo
+*~
+.#*
+.git
+Makefile
+aclocal.m4
+autom4te.cache
+stamp-h.in
+Makefile.in
+configure
+config.cache
+config.h
+config.h.in
+config.log
+config.guess
+config.status
+config.sub
+stamp-h
+stamp-h1
+libtool
+ltconfig
+ltmain.sh
+update.log
+libvirt.pc
+libvirt.spec
+COPYING
+m4
+ABOUT-NLS
+config.rpath
+mkinstalldirs
+coverage
+results.log
+libvirt-*.tar.gz
+INSTALL
+compile
+depcomp
+install-sh
+missing
diff --git a/docs/.gitignore b/docs/.gitignore
new file mode 100644
index 000..7e717f4
--- /dev/null
+++ b/docs/.gitignore
@@ -0,0 +1,3 @@
+Makefile
+Makefile.in
+.memdump
diff --git a/docs/devhelp/.gitignore b/docs/devhelp/.gitignore
new file mode 100644
index 000..cc4abab
--- /dev/null
+++ b/docs/devhelp/.gitignore
@@ -0,0 +1,3 @@
+Makefile
+Makefile.in
+libvirt.devhelp
diff --git a/docs/examples/.gitignore b/docs/examples/.gitignore
new file mode 100644
index 000..aa743cb
--- /dev/null
+++ b/docs/examples/.gitignore
@@ -0,0 +1,7 @@
+.memdump
+Makefile.in
+Makefile
+.deps
+.libs
+suspend
+info1
diff --git a/docs/examples/python/.gitignore b/docs/examples/python/.gitignore
new file mode 100644
index 000..282522d
--- /dev/null
+++ b/docs/examples/python/.gitignore
@@ -0,0 +1,2 @@
+Makefile
+Makefile.in
diff --git a/include/.gitignore b/include/.gitignore
new file mode 100644
index 000..282522d
--- /dev/null
+++ b/include/.gitignore
@@ -0,0 +1,2 @@