From c6eadadbefe2ec5709e9d31893f79c4ff78754b4 Mon Sep 17 00:00:00 2001 From: Manuel M T Chakravarty Date: Wed, 18 Jul 2007 03:45:11 +0000 Subject: [PATCH 1/1] darcs-all: allow relative path for repo in local fs --- darcs-all | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/darcs-all b/darcs-all index 72e1ed3..7743e8a 100644 --- a/darcs-all +++ b/darcs-all @@ -18,7 +18,12 @@ if ($defaultrepo =~ /:/) { $defaultrepo_lib = "$defaultrepo_base/packages"; } elsif ($defaultrepo =~ /^\//) { - # Local filesystem (assumes a checked-out tree): + # Local filesystem, absolute path (assumes a checked-out tree): + $defaultrepo_base = $defaultrepo; + $defaultrepo_lib = "$defaultrepo/libraries"; +} +elsif ($defaultrepo =~ /^..\//) { + # Local filesystem, relative path (assumes a checked-out tree): $defaultrepo_base = $defaultrepo; $defaultrepo_lib = "$defaultrepo/libraries"; } -- 1.7.10.4