I started with todays CVS checkout of drush. And get a bunch of useful commands, but no mention of the CVS or SVN update tools that are mentioned in some threads here.
I roll back to DRUPAL-6--2-0-RC1 and still don't see them.
In my checkout directory (HEAD), I saw the folders drush_pm_cvs etc, but they were empty.
Looking at the repository, I see there used to be something there on a 6--1 branch
I can currently drush dl {module} but I thought there may have been provision under drush to drush co {module} to assist keeping up with CVS versions. Am I dreaming? Is this still only on a wish-list, or has it fallen into the cracks somewhere in the CVS branches?
I'm thinking the CVS is slightly borked... but I also see evidence of a code-dir refactoring (things have moved over to under drush/commands/pm ?)
Can anyone clarify what's up with the current release? Is it supposed to include some CVS help utilities? Are they abandoned, pending a rewrite, or just forgotten?
Comments
Comment #1
dman commentedUpdate to self and others with the same question...
I think but am not sure yet, that some clues about the cvs commands can be found in
drush help dl.To quote:
If you already know that CVS utilities are tucked away under a thing called dl - the docs are incredibly good.
If you did not already know that, and didn't follow up with 20 minutes reading and tracing the source code... well? It's a bit hard to find...
Searching on drupal.org or this project did not provide the answer to this question. So maybe my reposting/exposing the docs here will help :-}
Comment #2
dman commentedTo continue documenting my own confusions...
More code sleuthing leads me to believe that the magic words was looking for are:
drush -v dl backup_migrate-6.x-1.x-dev --package-handler=cvs(I'm trying to checkout the current -dev version of backup_migrate - including the CVS info so I can eventually contribute a patch)
... but that line doesn't work.
... and ... the process freezes and stalls. It looks like I was getting closer, although ...
-z6is not something I'm used to using.... Neither is cvs.drupal.org! Turning on trace and running the failed command:
cvs -z6 -t -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib checkout -d backup_migrate -r DRUPAL-6--1 contributions/modules/backup_migrateRIGHT... but running it without -z6 works just fine!
cvs -t -d:pserver:anonymous:anonymous@cvs.drupal.org:/cvs/drupal-contrib checkout -d backup_migrate -r DRUPAL-6--1 contributions/modules/backup_migrateClues.
It's looking to me like if I want drush/CVS to interact with cvs.d.o (um, yeah!) ... I need to patch drush cvs.inc
to take out that
-z6.... YAY.
... Now I just need to figure out a good way to override the anonymous:anonymous setting :-B
Apologies for the stream-of-consciousness debugging here - but MAYBE it will bring to light some holes in the documentation, or intuitiveness of the system that could be fixed by making information more findable :-}. What is obvious to those that have worked on the code is still a black box to me as someone who is trying to get started with using the system.
What's the precise difference between
-package-handlerand-version-controlBTW? Where would I look to find their valid options? Inspecting the code I see 'cvs', 'svn', 'wget'. These opts are almost-but-not-quite documented indrush help dlComment #3
moshe weitzman commentedpackage handler determines how you download projects (CVS or wget/CURL). version control determines how you do backup of projects when upgrading. if you use SVN, drush doesn't make a backup directory because it lets you save changes in your SVN instead.
nothing else to do here AFAICT
Comment #4
dman commentedYeah, 80% of it is just me researching out loud.
I'm trying that old d.o suggestion to "document things you don't don't understand" :-/ Well we can see how that turned out... :-\
OK, but arising from the innards of my confusions, can anyone please confirm that
drush -v dl backup_migrate-6.x-1.x-dev --package-handler=cvswas expected to work?
Because it didn't. For Me. Until I patched the module as described in my experiment above.
So either I'm using it wrong, docs need to be updated, or some patch applied.
I vote for #1 of course, but would like feedback on what to do right instead...
Comment #5
moshe weitzman commentedWorks for me. I am using 'Concurrent Versions System (CVS) 1.12.13 (client/server)'. No idea what -z6 is all about.
Comment #6
dman commentedCool.
If nothing else that narrows it down somewhat to my cvs client handshaking with the cvs server - not the drush invocation that's happening around it, and not anything specific to cvs.drupal.org either.
Must just be my client "Concurrent Versions System (CVS) 1.12.13 (client/server)" also! Hm. But on OSX
Thanks for the clarification! It's just me.
-z6 is something about zipping the files for transmission over the network pipe and unzipping them at the other end. Very clever, but too clever for this terminal to handle it seems.
Cheers,
.dan.