Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Fails on old-fashioned repos with darcs 2.7.99 #15

graue opened this Issue · 3 comments

2 participants



Ubuntu 12.04 ships version 2.7.99 of darcs, seemingly a release candidate of 2.8.0:

$ darcs --version (release candidate 1)

Like 2.8.x, this doesn't understand --old-fashioned-inventory. Here's a quick patch to fix it:

diff --git a/darcs-to-git b/darcs-to-git
index ed7b6a6..ef6ed0e 100755
--- a/darcs-to-git
+++ b/darcs-to-git
@@ -491,7 +491,7 @@ unless"_darcs")
     darcs_init << "--darcs-2"
   elsif DARCS_VERSION >= [2, 0, 0]
     puts "Using legacy darcs inventory format to match upstream repo"
-    if DARCS_VERSION >= [2, 8, 0]
+    if DARCS_VERSION >= [2, 7, 99]
       darcs_init << "--hashed"
       darcs_init << "--old-fashioned-inventory"

With this, darcs-to-git is working fine for me. Thanks!


Thanks -- this is actually a duplicate of #13, and the fix is in the latest revision.

@purcell purcell closed this

Unless I'm missing something, not quite. I still see version 2.8.0 referenced in the newest code:

    if DARCS_VERSION >= [2, 8, 0]
      darcs_init << "--hashed"

My patch changes 2.8.0 to 2.7.99.


Sorry Scott -- fixed now. My local repo had somehow got unhooked from the remote, so I wasn't looking at the same code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.