diff -r 871485bd03fd -r 3df7fc75afc5 mercurial/cmdutil.py --- a/mercurial/cmdutil.py Fri Mar 27 13:48:51 2015 -0500 +++ b/mercurial/cmdutil.py Fri Mar 27 13:51:21 2015 -0500 @@ -169,7 +169,6 @@ mergemod.update(repo, repo.dirstate.p1(), False, True, choices) - # 3b. (apply) if dopatch: try: @@ -673,7 +672,6 @@ res = lambda p: dest return res - pats = scmutil.expandpats(pats) if not pats: raise util.Abort(_('no source or destination specified')) @@ -980,7 +978,6 @@ def write(s, **kw): fp.write(s) - write("# HG changeset patch\n") write("# User %s\n" % ctx.user()) write("# Date %d %d\n" % ctx.date()) @@ -1652,7 +1649,6 @@ else: last = filelog.rev(node) - # keep track of all ancestors of the file ancestors = set([filelog.linkrev(last)]) @@ -3046,7 +3042,6 @@ ui.warn(msg % rel) break - if not opts.get('dry_run'): needdata = ('revert', 'add', 'undelete') _revertprefetch(repo, ctx, *[actions[name][0] for name in needdata])