understand absolute pathnames on Windows too
authorSimon Marlow <marlowsd@gmail.com>
Mon, 28 Jul 2008 10:22:43 +0000 (10:22 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Mon, 28 Jul 2008 10:22:43 +0000 (10:22 +0000)
darcs-all

index bb41706..b1451b1 100644 (file)
--- a/darcs-all
+++ b/darcs-all
@@ -17,7 +17,7 @@ if ($defaultrepo =~ /^...*:/) {
     $defaultrepo_base =~ s#/[^/]+/?$##;
     $checked_out_tree = 0;
 }
-elsif ($defaultrepo =~ /^(\.\.)?\//) {
+elsif ($defaultrepo =~ /^\/|\.\.\/|.:(\/|\\)/) {
     # Local filesystem, either absolute or relative path
     # (assumes a checked-out tree):
     $defaultrepo_base = $defaultrepo;