Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
4571:eb403f295ff1 | 4572:6a8e1dd18ba2 |
---|---|
417 slist.sort() | 417 slist.sort() |
418 i = bisect.bisect(slist, name) | 418 i = bisect.bisect(slist, name) |
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: |
426 files = [] | 426 files = [] |
427 try: | 427 try: |