Mercurial > hg
diff mercurial/commands.py @ 4572:6a8e1dd18ba2
commands.commit: symlinks are supported
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Wed, 13 Jun 2007 19:15:58 -0300 |
parents | a73d80d6385a |
children | 339b8aeee8c5 |
line wrap: on
line diff
--- a/mercurial/commands.py Wed Jun 13 19:15:58 2007 -0300 +++ b/mercurial/commands.py Wed Jun 13 19:15:58 2007 -0300 @@ -419,7 +419,7 @@ 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: