Mercurial > hg
comparison mercurial/match.py @ 42362:52beb1b8a649
match: remove an obsolete comment about util.finddirs()
Obsolete since 8e55c0c642c (util: make util.dirs() and util.finddirs()
include root directory (API), 2017-05-16).
Differential Revision: https://phab.mercurial-scm.org/D6433
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Wed, 22 May 2019 14:16:44 -0700 |
parents | c4b8f8637d7a |
children | 96fc696a9cb2 |
comparison
equal
deleted
inserted
replaced
42361:c4b8f8637d7a | 42362:52beb1b8a649 |
---|---|
584 @staticmethod | 584 @staticmethod |
585 def _findsplitdirs(path): | 585 def _findsplitdirs(path): |
586 # yields (dirname, basename) tuples, walking back to the root. This is | 586 # yields (dirname, basename) tuples, walking back to the root. This is |
587 # very similar to util.finddirs, except: | 587 # very similar to util.finddirs, except: |
588 # - produces a (dirname, basename) tuple, not just 'dirname' | 588 # - produces a (dirname, basename) tuple, not just 'dirname' |
589 # - includes root dir | |
590 # Unlike manifest._splittopdir, this does not suffix `dirname` with a | 589 # Unlike manifest._splittopdir, this does not suffix `dirname` with a |
591 # slash. | 590 # slash. |
592 oldpos = len(path) | 591 oldpos = len(path) |
593 pos = path.rfind('/') | 592 pos = path.rfind('/') |
594 while pos != -1: | 593 while pos != -1: |