diff -r 1bf71faf042e -r 0142b59f5743 mercurial/commands.py --- a/mercurial/commands.py Wed Mar 25 13:55:35 2015 +0900 +++ b/mercurial/commands.py Wed Mar 25 13:55:35 2015 +0900 @@ -6337,9 +6337,7 @@ rev = cmdutil.finddate(ui, repo, date) if check: - c = repo[None] - if c.dirty(merge=False, branch=False, missing=True): - raise util.Abort(_("uncommitted changes")) + cmdutil.bailifchanged(repo, merge=False) if rev is None: rev = repo[repo[None].branch()].rev()