mercurial/util.py
changeset 42343 d8e55c0c642c
parent 42041 3e47d1ec9da5
child 42538 2db96bf84a8f
equal deleted inserted replaced
42342:448486e12c13 42343:d8e55c0c642c
  3207 def finddirs(path):
  3207 def finddirs(path):
  3208     pos = path.rfind('/')
  3208     pos = path.rfind('/')
  3209     while pos != -1:
  3209     while pos != -1:
  3210         yield path[:pos]
  3210         yield path[:pos]
  3211         pos = path.rfind('/', 0, pos)
  3211         pos = path.rfind('/', 0, pos)
       
  3212     yield ''
  3212 
  3213 
  3213 
  3214 
  3214 # convenient shortcut
  3215 # convenient shortcut
  3215 dst = debugstacktrace
  3216 dst = debugstacktrace
  3216 
  3217