Show More
@@ -419,7 +419,7 b' def commit(ui, repo, *pats, **opts):' | |||||
419 | if i >= len(slist) or not slist[i].startswith(name): |
|
419 | if i >= len(slist) or not slist[i].startswith(name): | |
420 | raise util.Abort(_("no match under directory %s!") |
|
420 | raise util.Abort(_("no match under directory %s!") | |
421 | % rf) |
|
421 | % rf) | |
422 | elif not stat.S_ISREG(mode): |
|
422 | elif not (stat.S_ISREG(mode) or stat.S_ISLNK(mode)): | |
423 | raise util.Abort(_("can't commit %s: " |
|
423 | raise util.Abort(_("can't commit %s: " | |
424 | "unsupported file type!") % rf) |
|
424 | "unsupported file type!") % rf) | |
425 | else: |
|
425 | else: |
@@ -1,5 +1,10 b'' | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
|
3 | cleanpath() | |||
|
4 | { | |||
|
5 | sed -e "s:/.*\(/test-symlink-basic/.*\):...\1:" | |||
|
6 | } | |||
|
7 | ||||
3 | cat >> readlink.py <<EOF |
|
8 | cat >> readlink.py <<EOF | |
4 | import os |
|
9 | import os | |
5 | import sys |
|
10 | import sys | |
@@ -11,6 +16,7 b' EOF' | |||||
11 | hg init a |
|
16 | hg init a | |
12 | cd a |
|
17 | cd a | |
13 | ln -s nothing dangling |
|
18 | ln -s nothing dangling | |
|
19 | hg commit -m 'commit symlink without adding' -d '0 0' dangling 2>&1 | cleanpath | |||
14 | hg add dangling |
|
20 | hg add dangling | |
15 | hg commit -m 'add symlink' -d '0 0' |
|
21 | hg commit -m 'add symlink' -d '0 0' | |
16 |
|
22 |
General Comments 0
You need to be logged in to leave comments.
Login now