mercurial/commands.py
changeset 4572 6a8e1dd18ba2
parent 4561 a73d80d6385a
child 4574 339b8aeee8c5
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: