# HG changeset patch # User Alexis S. L. Carvalho # Date 1174439391 10800 # Node ID e14b6980a0140cc83f14452c65ed2690a3e0609c # Parent 34c4540c04c577932a9ca3cb623636070edfdc2d fix hg commit . in the repo root diff --git a/mercurial/commands.py b/mercurial/commands.py --- a/mercurial/commands.py +++ b/mercurial/commands.py @@ -426,6 +426,8 @@ def commit(ui, repo, *pats, **opts): files = modified + added + removed slist = None for f in fns: + if f == '.': + continue if f not in files: rf = repo.wjoin(f) if f in unknown: