? .buildpath
? .project
? .settings
Index: README.txt
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush_make/Attic/README.txt,v
retrieving revision 1.1.2.1
diff -u -p -r1.1.2.1 README.txt
--- README.txt	6 Nov 2009 21:31:53 -0000	1.1.2.1
+++ README.txt	8 Nov 2009 20:28:48 -0000
@@ -9,7 +9,7 @@ file.
 
 Among drush_make's capabilities are:
 * Downloading Drupal core, as well as contrib modules from drupal.org.
-* Checking code out from CVS, SVN, git and bzr repositories.
+* Checking code out from CVS, SVN, git, bzr, and hg repositories.
 * Getting plain .tar.gz and .zip files (particularly useful for libraries
   that can not be distributed directly with drupal core or modules).
 * Fetching and applying patches.
Index: drush_make.download.inc
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/drush_make/Attic/drush_make.download.inc,v
retrieving revision 1.1.2.14
diff -u -p -r1.1.2.14 drush_make.download.inc
--- drush_make.download.inc	7 Nov 2009 05:23:35 -0000	1.1.2.14
+++ drush_make.download.inc	8 Nov 2009 20:28:48 -0000
@@ -218,3 +218,15 @@ class DrushMakeDownload_SVN extends Drus
     return FALSE;
   }
 }
+
+class DrushMakeDownload_Hg extends DrushMakeDownload {
+  function download() {
+    // @TODO implement revisions, tags
+    if (isset($this->project->download['url'])) {
+      drush_shell_exec("hg clone %s %s/%s", $this->project->download['url'], $this->project->tmp_path, $this->project->name);
+      drush_log("{$this->project->name} branched from {$this->project->download['url']}.", 'ok');
+      return $this->project->name;
+    }
+    return FALSE;
+  }
+}
