equal
deleted
inserted
replaced
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: |