[PATCH 2 of 2] Pull up backout of changeset b4903debbe3be1fd78ddd26ee783f7cdfc9bc5c0

Giorgos Keramidas keramida at ceid.upatras.gr
Tue Nov 21 02:07:01 UTC 2006


# HG changeset patch
# User Giorgos Keramidas <keramida at ceid.upatras.gr>
# Date 1164078032 -7200
# Node ID 356009055ee76cafdb512a7c5cf45699d61d7a32
# Parent  eb0b4a2d70a9c650d22bad9df0772878af0ac4e0
# Parent  b482d76f16e92f1268837e1fc395a58df30de72d
Pull up backout of changeset b4903debbe3be1fd78ddd26ee783f7cdfc9bc5c0

diff -r eb0b4a2d70a9 -r 356009055ee7 mercurial/commands.py
--- a/mercurial/commands.py	Fri Nov 17 08:06:54 2006 +0100
+++ b/mercurial/commands.py	Tue Nov 21 05:00:32 2006 +0200
@@ -418,15 +418,8 @@ def commit(ui, repo, *pats, **opts):
         cmdutil.addremove(repo, pats, opts)
     fns, match, anypats = cmdutil.matchpats(repo, pats, opts)
     if pats:
-        status = repo.status(files=fns, match=match)
-        modified, added, removed, deleted, unknown = status[:5]
+        modified, added, removed = repo.status(files=fns, match=match)[:3]
         files = modified + added + removed
-        for f in fns:
-            if f not in modified + added + removed:
-                if f in unknown:
-                    raise util.Abort(_("file %s not tracked!") % f)
-                else:
-                    raise util.Abort(_("file %s not found!") % f)
     else:
         files = []
     try:



More information about the Mercurial-devel mailing list