# HG changeset patch # User Brodie Rao # Date 2010-10-08 19:02:23 # Node ID 7178f6fedb9db000300abda8168d36a890a686c2 # Parent 0ae35296fbf4d486ea4228bfd93c03a844ee9fb8 cat: fix cat without -r, broken by 0ae35296fbf4 The default revision for revsingle() is now '.' instead of None. This preserves the behavior of cat prior to it using revsingle(). diff --git a/mercurial/cmdutil.py b/mercurial/cmdutil.py --- a/mercurial/cmdutil.py +++ b/mercurial/cmdutil.py @@ -111,7 +111,7 @@ def loglimit(opts): limit = None return limit -def revsingle(repo, revspec, default=None): +def revsingle(repo, revspec, default='.'): if not revspec: return repo[default]