diff mercurial/commands.py @ 4252:e14b6980a014

fix hg commit . in the repo root
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
date Tue, 20 Mar 2007 22:09:51 -0300
parents 1c69c73d85d9
children fe0fe0b4d73b a5cde03cd019
line wrap: on
line diff
--- 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: