Fix |hg pull|
authorGregory Szorc <gps@mozilla.com>
Fri, 26 Jul 2013 10:45:37 -0700
changeset 39 280d1ef3b0172a20b0e708c1e265704386879a38
parent 38 abcc32b7505934329ff8d2d2231fd798a73f2b66
child 40 bffffc2e5f8a24b232ecfaa138b8240406ee6d0c
push id22
push usergszorc@mozilla.com
push dateFri, 26 Jul 2013 17:45:37 +0000
Fix |hg pull|
__init__.py
--- a/__init__.py
+++ b/__init__.py
@@ -497,17 +497,17 @@ def buginfo(ui, repo, *bugs, **opts):
         ui.write('\n')
 
 
 def critic_hook(ui, repo, node=None, **opts):
     critique(ui, repo, node=node, **opts)
     return 0
 
 
-def pullexpand(orig, ui, repo, source, **opts):
+def pullexpand(orig, ui, repo, source='default', **opts):
     """Wraps built-in pull command to expand aliases to multiple sources."""
     for tree, uri in resolve_trees_to_uris([source]):
         result = orig(ui, repo, uri or tree, **opts)
 
         if result:
             return result
 
     return 0