Commits

Bożydar Sobczak committed 39f6fda

dest parameter fixed

Comments (0)

Files changed (1)

             return smelly_count
     return orig_commit(ui, repo, *pats, **opts)
     
-def new_push(orig_push, ui, repo, *pats, **opts):
-    revs = hg._outgoing(ui, repo, None, opts)
+def new_push(orig_push, ui, repo, dest=None, **opts):
+    revs = hg._outgoing(ui, repo, dest, opts)
     if revs:
         smelly_count = 0
         for rev in revs:
                              (smelly_count, smelly_count != 1 and 's' or ''),
                              default='n').lower().startswith('y'):
                 return smelly_count
-    return orig_push(ui, repo, *pats, **opts)
+    return orig_push(ui, repo, dest, **opts)
 
 def uisetup(ui):
     extensions.wrapcommand(commands.table, 'commit', new_commit)