Mercurial > hgrepos > DevTools > mercurial-extensions
changeset 183:ad40d8ef2992
Remove unneeded function
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Sun, 09 Sep 2018 16:33:53 +0200 |
| parents | eb4ef206d3dd |
| children | 0161a1e2ce12 |
| files | extensions/timestamps.py |
| diffstat | 1 files changed, 0 insertions(+), 11 deletions(-) [+] |
line wrap: on
line diff
--- a/extensions/timestamps.py Thu Sep 06 09:16:50 2018 +0200 +++ b/extensions/timestamps.py Sun Sep 09 16:33:53 2018 +0200 @@ -159,7 +159,6 @@ raise error.Abort(_("repository is not local")) cmdutil.bailifchanged(repo) matcher = gen_matcher(repo, ctx, tsconfig=tsconfig) - #print list(read_posix_db(repo.wjoin(TIMESTAMPS_DATABASE))) ts = Timestamps() with io.open(repo.wjoin(TIMESTAMPS_DATABASE), "rb") as db: ts.read(db) @@ -221,16 +220,6 @@ return fn -def read_posix_db(filename): - # - # util.posixfile does not work: "io.BufferedReader" then complaints - # about missing attribute ".readable". - # - with io.open(filename, "rb") as db: - for f in db_reader(db): - yield f - - def db_reader(db): """A generator that parses the file `db` yielding records consisting of fields
