22dfaefdf6ee — Durham Goode 5 years ago
sparse: add missing return statements

A few spots were not returning the original value. This was probably fine since
they didn't have return values anyway, but it's unclean not to return anyway.
1 files changed, 2 insertions(+), 2 deletions(-)

M sparse.py
M sparse.py +2 -2
@@ 234,7 234,7 @@ def _clonesparsecmd(orig, ui, repo, *arg
                     exclude=exclude, enableprofile=enableprofile)
             return orig(self, node, overwrite)
         extensions.wrapfunction(hg, 'updaterepo', clone_sparse)
-    orig(ui, repo, *args, **opts)
+    return orig(ui, repo, *args, **opts)
 
 def _setupclone(ui):
     entry = commands.table['^clone']

          
@@ 258,7 258,7 @@ def _setupadd(ui):
                 dirname, basename = util.split(pat)
                 dirs.add(dirname)
             _config(ui, repo, list(dirs), include=True)
-        orig(ui, repo, *pats, **opts)
+        return orig(ui, repo, *pats, **opts)
 
     extensions.wrapcommand(commands.table, 'add', _add)