# HG changeset patch # User Matt Mackall # Date 1248303551 18000 # Node ID 7bb1dbfd30829c697c88d7a8882d900ee8d6d52f # Parent f783bb979fb3b6d3c99cfd8469f14b06625e3c94 update: allow -c to jump branches if clean diff -r f783bb979fb3 -r 7bb1dbfd3082 mercurial/commands.py --- a/mercurial/commands.py Wed Jul 22 17:53:23 2009 -0500 +++ b/mercurial/commands.py Wed Jul 22 17:59:11 2009 -0500 @@ -3045,7 +3045,7 @@ raise util.Abort(_("you can't specify a revision and a date")) rev = cmdutil.finddate(ui, repo, date) - if clean: + if clean or check: return hg.clean(repo, rev) else: return hg.update(repo, rev)