Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 4556:30bc57094bfc
dispatch: move findrepo to cmdutil
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 11 Jun 2007 21:09:24 -0500 |
parents | 1843d31bfdbf |
children | eda59019dc69 d092e962c4f8 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Mon Jun 11 21:09:24 2007 -0500 +++ b/mercurial/localrepo.py Mon Jun 11 21:09:24 2007 -0500 @@ -12,15 +12,6 @@ import re, lock, transaction, tempfile, stat, mdiff, errno, ui import os, revlog, time, util -def findrepo(): - p = os.getcwd() - while not os.path.isdir(os.path.join(p, ".hg")): - oldp, p = p, os.path.dirname(p) - if p == oldp: - return None - - return p - class localrepository(repo.repository): capabilities = ('lookup', 'changegroupsubset') supported = ('revlogv1', 'store')