mercurial/commands.py
changeset 4570 6a8e1dd18ba2
parent 4558 a73d80d6385a
child 4572 339b8aeee8c5
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -419,7 +419,7 @@ def commit(ui, repo, *pats, **opts):
                     if i >= len(slist) or not slist[i].startswith(name):
                         raise util.Abort(_("no match under directory %s!")
                                          % rf)
-                elif not stat.S_ISREG(mode):
+                elif not (stat.S_ISREG(mode) or stat.S_ISLNK(mode)):
                     raise util.Abort(_("can't commit %s: "
                                        "unsupported file type!") % rf)
     else: