[Product-Developers] Re: git svn and collective

Jeff Kowalczyk jtk at yahoo.com
Fri Oct 31 11:59:01 UTC 2008


Dylan Jay wrote:
> I'm attempting to use git with the collective
> 1) pull down a single branch of the project so I can manage patches locally

I've been using git svn with the collective projects. I didn't make the
connection that git svn fetch options were accepted by git svn clone at
first, either.

If you can locate the svn revision of a repository path's initial import
to the collective, use that. I expect it works the same if you're a few
revisions early, you'd just have to wait for the extra git svn fetch
operations, which are searched for the requested path.

Selecting a random example with relatively short output:

  $ git svn clone -s -r 74330:HEAD https://svn.plone.org/svn/collective/plonetheme.stylized
  Initialized empty Git repository in /path/to/plonetheme.stylized/.git/
  Using higher level of URL: https://svn.plone.org/svn/collective/plonetheme.stylized => https://svn.plone.org/svn/collective
  	A	plonetheme/__init__.py
  	A	plonetheme/stylized/browser/viewlet.pt
  	A	plonetheme/stylized/browser/configure.zcml
  	A	plonetheme/stylized/browser/images/img01.gif
  	A	plonetheme/stylized/browser/images/img02.gif
  	A	plonetheme/stylized/browser/images/img03.gif
  	A	plonetheme/stylized/browser/images/img04.gif
  	A	plonetheme/stylized/browser/images/TN.gif
  	A	plonetheme/stylized/browser/images/img05.gif
  	A	plonetheme/stylized/browser/images/img06.gif
  	A	plonetheme/stylized/browser/images/img07.gif
  	A	plonetheme/stylized/browser/images/img08.gif
  	A	plonetheme/stylized/browser/images/README.txt
  	A	plonetheme/stylized/browser/__init__.py
  	A	plonetheme/stylized/browser/viewlets.py
  	A	plonetheme/stylized/browser/interfaces.py
  	A	plonetheme/stylized/browser/stylesheets/README.txt
  	A	plonetheme/stylized/browser/stylesheets/main.css
  	A	plonetheme/stylized/browser/stylesheets/stylized.css
  	A	plonetheme/stylized/profiles/default/metadata.xml
  	A	plonetheme/stylized/profiles/default/cssregistry.xml
  	A	plonetheme/stylized/profiles/default/viewlets.xml
  	A	plonetheme/stylized/profiles/default/jsregistry.xml
  	A	plonetheme/stylized/profiles/default/skins.xml
  	A	plonetheme/stylized/profiles/default/import_steps.xml
  	A	plonetheme/stylized/profiles/default/plonetheme.stylized_various.txt
  	A	plonetheme/stylized/version.txt
  	A	plonetheme/stylized/configure.zcml
  	A	plonetheme/stylized/__init__.py
  	A	plonetheme/stylized/profiles.zcml
  	A	plonetheme/stylized/skins/plonetheme_stylized_custom_templates/main_template.pt
  	A	plonetheme/stylized/skins/plonetheme_stylized_custom_templates/CONTENT.txt
  	A	plonetheme/stylized/skins/plonetheme_stylized_custom_images/CONTENT.txt
  	A	plonetheme/stylized/skins/plonetheme_stylized_styles/base.css.dtml
  	A	plonetheme/stylized/skins/plonetheme_stylized_styles/portlets.css.dtml
  	A	plonetheme/stylized/skins/plonetheme_stylized_styles/public.css.dtml
  	A	plonetheme/stylized/skins/plonetheme_stylized_styles/CONTENT.txt
  	A	plonetheme/stylized/skins/plonetheme_stylized_styles/base_properties.props
  	A	plonetheme/stylized/setuphandlers.py
  	A	plonetheme/stylized/tests.py
  	A	plonetheme/stylized/skins.zcml
  	A	plonetheme.stylized.egg-info/SOURCES.txt
  	A	plonetheme.stylized.egg-info/top_level.txt
  	A	plonetheme.stylized.egg-info/namespace_packages.txt
  	A	plonetheme.stylized.egg-info/PKG-INFO
  	A	plonetheme.stylized.egg-info/entry_points.txt
  	A	plonetheme.stylized.egg-info/dependency_links.txt
  	A	plonetheme.stylized.egg-info/not-zip-safe
  	A	plonetheme.stylized.egg-info/paster_plugins.txt
  	A	plonetheme.stylized.egg-info/requires.txt
  	A	setup.py
  	A	docs/HISTORY.txt
  	A	docs/LICENSE.txt
  	A	docs/LICENSE.GPL
  	A	docs/INSTALL.txt
  	A	plonetheme.stylized-configure.zcml
  	A	MANIFEST.in
  	A	README.txt
  	A	setup.cfg
  r74330 = dfab22d5472c570689d0bcd4de1547210671c0d7 (trunk)
  r74331 = 50848645cce6e7765eb467629710e301d81b57d1 (trunk)
  	M	plonetheme/stylized/browser/stylesheets/main.css
  	M	plonetheme/stylized/skins/plonetheme_stylized_custom_templates/main_template.pt
  r74332 = 38352f748d5137d1aff4948418b536c901f56824 (trunk)
  	M	plonetheme/stylized/version.txt
  r74333 = 8bbf17d898bd234e8780319d3aba830907d1b689 (trunk)
  	M	setup.py
  	M	docs/HISTORY.txt
  	M	README.txt
  	A	pypi_upload.sh
  r74418 = 3fdbbd55d233d4f405ba2860908637857c47596a (trunk)
  r74419 = 06dc4d3c06ac37ae62bda78d27c9b4780c8d063b (trunk)
  	M	setup.py
  r74420 = b78c4a7fdf992f773012b99e6075f89fb319ea2e (trunk)
  Found possible branch point: https://svn.plone.org/svn/collective/plonetheme.stylized/trunk => https://svn.plone.org/svn/collective/plonetheme.stylized/tags/0.1, 74421
  Found branch parent: (tags/0.1) b78c4a7fdf992f773012b99e6075f89fb319ea2e
  Following parent with do_switch
  Successfully followed parent
  r74422 = 27cfbf5b8bbeeef56612ac6fec50cd46bd94af1b (tags/0.1)
  	M	plonetheme/stylized/browser/stylesheets/stylized.css
  r74444 = 9a56b76239aae1ff3948025373efbed1d9caf8a5 (trunk)
  	M	plonetheme/stylized/browser/stylesheets/main.css
  r74445 = c6877df98a74368004e2522b0cdadd0ddf50538d (trunk)
  	M	plonetheme/stylized/browser/stylesheets/main.css
  	M	plonetheme/stylized/skins/plonetheme_stylized_custom_templates/main_template.pt
  r74446 = 0bf8c0325fc6bf30df9063ab01919acdd6edcbdb (trunk)
  	M	plonetheme/stylized/browser/stylesheets/main.css
  	M	plonetheme.stylized.egg-info/SOURCES.txt
  	M	plonetheme.stylized.egg-info/PKG-INFO
  r74447 = 9ccb5cbeb6ff24b4e976b60e9f73d1702d031dc1 (trunk)
  	M	plonetheme/stylized/skins/plonetheme_stylized_custom_templates/main_template.pt
  r74448 = 8571f256526ed5c62b483266ceeb86e11e4f3274 (trunk)
  	M	plonetheme/stylized/version.txt
  	M	docs/HISTORY.txt
  r74449 = 6b16702e476a43379030acd24d1f211f8d311c48 (trunk)
  Found possible branch point: https://svn.plone.org/svn/collective/plonetheme.stylized/trunk => https://svn.plone.org/svn/collective/plonetheme.stylized/tags/0.2, 74449
  Found branch parent: (tags/0.2) 6b16702e476a43379030acd24d1f211f8d311c48
  Following parent with do_switch
  Successfully followed parent
  r74450 = ae63eca3cb44790cd206636b556edeb1119ea134 (tags/0.2)
  	M	plonetheme/stylized/browser/stylesheets/main.css
  r74451 = 89d93d17f044f4cfd25a0ab6780e955fd98ab2f8 (trunk)
  	M	plonetheme/stylized/version.txt
  r74452 = 642f2e48bb7156329db56db27c13626923906909 (trunk)
  	M	plonetheme/stylized/browser/stylesheets/main.css
  r74546 = 070b74b0c9796f32c030b543806fff79648d28ea (trunk)
  	M	docs/HISTORY.txt
  r74547 = 465537b118f694f858d21e134806f613cc614940 (trunk)
  Found possible branch point: https://svn.plone.org/svn/collective/plonetheme.stylized/trunk => https://svn.plone.org/svn/collective/plonetheme.stylized/tags/0.3, 74549
  Found branch parent: (tags/0.3) 465537b118f694f858d21e134806f613cc614940
  Following parent with do_switch
  Successfully followed parent
  r74550 = cdd3640f71f033a95724e9c20613c69e3331253c (tags/0.3)
  	M	README.txt
  r74588 = ade17f82896b523f60612a490f976aa33302a154 (trunk)
  	M	plonetheme/stylized/browser/stylesheets/main.css
  r74594 = 805d411caeaceb665996a1c5f95649cd8460e35a (trunk)
  	M	plonetheme/stylized/skins/plonetheme_stylized_styles/public.css.dtml
  r74629 = dd07f318701beec72912eeb6593a1080d38b6224 (trunk)
  	M	plonetheme/stylized/browser/stylesheets/main.css
  r74630 = 7b5b72b965fe82ca76c92f0b5805f477d0a1e9ba (trunk)
  	M	plonetheme/stylized/skins/plonetheme_stylized_custom_templates/main_template.pt
  r74631 = f6360a62ab83d012e39ef6c6d1f928a586c36572 (trunk)
  	M	plonetheme/stylized/version.txt
  	M	docs/HISTORY.txt
  r74632 = 29cc3f061a42dbcee03aac10b2e33dd7d09a08e1 (trunk)
  Found possible branch point: https://svn.plone.org/svn/collective/plonetheme.stylized/trunk => https://svn.plone.org/svn/collective/plonetheme.stylized/tags/0.4, 74632
  Found branch parent: (tags/0.4) 29cc3f061a42dbcee03aac10b2e33dd7d09a08e1
  Following parent with do_switch
  Successfully followed parent
  r74633 = d48355c8673cbcb68ad25be5261270ca5dd8ca1b (tags/0.4)
  	M	plonetheme/stylized/skins/plonetheme_stylized_styles/public.css.dtml
  r74634 = 454b141234a1200cbc05d0a47a3168fb5529ddce (trunk)
  	M	plonetheme/stylized/browser/stylesheets/main.css
  r74635 = 1673db5ba1e3b8596e547c3bb0a407a8fcd6821c (trunk)
  	M	plonetheme/stylized/browser/stylesheets/main.css
  r74636 = 3e08e2d53291c471dd59d09cb179cf77622c5970 (trunk)
  	M	plonetheme/stylized/browser/stylesheets/main.css
  r74637 = 4cdb31ac3ddba2b2d596c82f24d4ac5b9c4e1a36 (trunk)
  	M	plonetheme/stylized/version.txt
  	M	docs/HISTORY.txt
  r74638 = b3c623f31c63576889c74062f04dc4851fb09043 (trunk)
  Found possible branch point: https://svn.plone.org/svn/collective/plonetheme.stylized/trunk => https://svn.plone.org/svn/collective/plonetheme.stylized/tags/0.5, 74638
  Found branch parent: (tags/0.5) b3c623f31c63576889c74062f04dc4851fb09043
  Following parent with do_switch
  Successfully followed parent
  r74639 = de6196593c1c2793925790292a180ef1ce3b564a (tags/0.5)
  Checked out HEAD:
    https://svn.plone.org/svn/collective/plonetheme.stylized/tags/0.5 r74639


Absent an AUTHORS file, the initial commit message looks like this:

  commit dfab22d5472c570689d0bcd4de1547210671c0d7
  Author: timo <timo at db7f04ef-aaf3-0310-a811-c281ed44c4ad>
  Date:   Thu Oct 23 20:10:21 2008 +0000
  
      Initial import of plonetheme.stylized
      
      git-svn-id: https://svn.plone.org/svn/collective/plonetheme.stylized/trunk@74330 db7f04ef-aaf3-0310-a811-c281ed44c4ad






More information about the Product-Developers mailing list