Notice: the grml team is migrating from Mercurial to Git.
Please visit git.grml.org instead!
| author | Michael Gebetsroither <michael.geb@gmx.at> |
| Mon Oct 15 03:14:44 2007 +0200 (13 months ago) | |
| changeset 172 | 604b5b6f0cae |
| manifest | 604b5b6f0cae |
| parent 171 | 23c5a6909101 |
| child 173 | 6b298c786690 |
| tag | 0.25 |
--- a/debian/changelog Mon Oct 08 02:10:03 2007 +0200+++ b/debian/changelog Mon Oct 15 03:14:44 2007 +0200@@ -1,3 +1,9 @@ grml-mercurial-utils (0.24) unstable; ur+grml-mercurial-utils (0.25) unstable; urgency=low++ * reposearch: fix recursive searching++ -- Michael Gebetsroither <gebi@grml.org> Mon, 15 Oct 2007 03:13:49 +0200+grml-mercurial-utils (0.24) unstable; urgency=low* added generic reposearch
--- a/reposearch Mon Oct 08 02:10:03 2007 +0200+++ b/reposearch Mon Oct 15 03:14:44 2007 +0200@@ -12,7 +12,7 @@ def walkrepos(path, filter):for root, dirs, files in os.walk(path, onerror=errhandler):for d in dirs:- if filter(d):+ if d == filter():yield rootdirs[:] = []break@@ -29,11 +29,12 @@ def walkrepos_flat(path, filter):if __name__ == "__main__":def repofilter(dir, x):- return os.path.isdir(os.path.join(dir, x))- repo_types = {'hg': lambda dir: repofilter(dir, '.hg'),- 'git': lambda dir: repofilter(dir, '.git'),- 'bzr': lambda dir: repofilter(dir, '.bzr'),- 'darcs': lambda dir: repofilter(dir, '.darcs')}+ if dir == None: return x+ else: return os.path.isdir(os.path.join(dir, x))+ repo_types = {'hg': lambda dir=None: repofilter(dir, '.hg'),+ 'git': lambda dir=None: repofilter(dir, '.git'),+ 'bzr': lambda dir=None: repofilter(dir, '.bzr'),+ 'darcs': lambda dir=None: repofilter(dir, '.darcs')}usage = "usage: %prog [options] <dir1> <dir2> ...\n\n" +\"%prog is a program to scan for repositories of different vcs in\nthe given directories.\n\n" +\