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