diff -r 66f0c78350ab -r 6da47b655d97 mercurial/commands.py --- a/mercurial/commands.py Mon Oct 22 16:06:47 2012 -0500 +++ b/mercurial/commands.py Mon Oct 22 17:23:31 2012 -0500 @@ -5894,7 +5894,7 @@ if check: c = repo[None] - if c.dirty(merge=False, branch=False): + if c.dirty(merge=False, branch=False, missing=True): raise util.Abort(_("uncommitted local changes")) if rev is None: rev = repo[repo[None].branch()].rev()