summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2010-06-27 20:40:01 +0200
committerMiklos Vajna <vmiklos@frugalware.org>2010-06-27 20:40:01 +0200
commit852222f41bc7cdf7452289625341c3c6dfa9a7b1 (patch)
tree8171e21c1cd58aa62338f694d367145c79f126cd
parent1e0a348cf6345fb0a89dbb6ae847f2280bb1b6f6 (diff)
downloadpython-fastimport-852222f41bc7cdf7452289625341c3c6dfa9a7b1.tar.gz
darcs-fast-import: Allow more liberal renaming
Allow renames like BUG -> bug. Darcs does not allow it by default.
-rwxr-xr-xexporters/darcs/darcs-fast-import2
-rw-r--r--exporters/darcs/t/lib.sh8
2 files changed, 9 insertions, 1 deletions
diff --git a/exporters/darcs/darcs-fast-import b/exporters/darcs/darcs-fast-import
index 576c889..fb6a7a2 100755
--- a/exporters/darcs/darcs-fast-import
+++ b/exporters/darcs/darcs-fast-import
@@ -109,7 +109,7 @@ class Handler:
self.bug("darcs failed")
def invoke_add(self, path):
- self.invoke_darcs("add --boring %s" % path)
+ self.invoke_darcs("add --boring --case-ok %s" % path)
def handle_mark(self):
if self.line.startswith("mark :"):
diff --git a/exporters/darcs/t/lib.sh b/exporters/darcs/t/lib.sh
index ee3ec3c..c0f30c2 100644
--- a/exporters/darcs/t/lib.sh
+++ b/exporters/darcs/t/lib.sh
@@ -233,6 +233,14 @@ third line" | git commit -a -F -
touch foo.pyc
git add foo.pyc
git commit -a -m "boring file"
+ # replace an uppercase file to a lowercase one
+ echo SPAM > SPAM
+ git add SPAM
+ git commit -a -m SPAM
+ rm SPAM
+ echo spam > spam
+ git add spam
+ git commit -a -m "SPAM -> spam"
cd ..
}