Mercurial > hg > hgforest
changeset 34:3668035ca554
simplify the test for applied mq patches
author | Robin Farine <robin.farine@terminus.org> |
---|---|
date | Sun, 17 Dec 2006 20:01:29 +0100 |
parents | 54ab5a322cac |
children | 4e6c1a940dbe |
files | forest.py |
diffstat | 1 files changed, 7 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/forest.py Sun Dec 17 19:56:29 2006 +0100 +++ b/forest.py Sun Dec 17 20:01:29 2006 +0100 @@ -73,14 +73,13 @@ entries = os.listdir(rpath) for e in entries: path = os.path.join(rpath, e) - if e == "data" or not os.path.isdir(path): - continue - series = os.path.join(path, "series") - status = os.path.join(path, "status") - if os.path.isfile(series): - s = os.stat(status) - if s.st_size > 0: - return True + if os.path.isdir(path): + series = os.path.join(path, "series") + status = os.path.join(path, "status") + if os.path.isfile(series): + s = os.stat(status) + if s.st_size > 0: + return True return False