changeset 12619:7178f6fedb9d

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().
author Brodie Rao <brodie@bitheap.org>
date Fri, 08 Oct 2010 14:02:23 -0500
parents 0ae35296fbf4
children 9a9312e84e4e
files mercurial/cmdutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Thu Oct 07 18:24:29 2010 -0500
+++ b/mercurial/cmdutil.py	Fri Oct 08 14:02:23 2010 -0500
@@ -111,7 +111,7 @@
         limit = None
     return limit
 
-def revsingle(repo, revspec, default=None):
+def revsingle(repo, revspec, default='.'):
     if not revspec:
         return repo[default]