[PATCH 1 of 2] Backed out changeset b4903debbe3be1fd78ddd26ee783f7cdfc9bc5c0
Giorgos Keramidas
keramida at ceid.upatras.gr
Tue Nov 21 02:07:00 UTC 2006
# HG changeset patch
# User Giorgos Keramidas <keramida at ceid.upatras.gr>
# Date 1164077996 -7200
# Node ID b482d76f16e92f1268837e1fc395a58df30de72d
# Parent b4903debbe3be1fd78ddd26ee783f7cdfc9bc5c0
Backed out changeset b4903debbe3be1fd78ddd26ee783f7cdfc9bc5c0
It breaks explicit commit ops with directory names, i.e.:
% hg stat .
foo/bar
foo/baz
% hg ci foo
diff -r b4903debbe3b -r b482d76f16e9 mercurial/commands.py
--- a/mercurial/commands.py Wed Nov 15 23:59:39 2006 -0600
+++ b/mercurial/commands.py Tue Nov 21 04:59:56 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