# HG changeset patch # User Durham Goode # Date 1454699561 28800 # Fri Feb 05 11:12:41 2016 -0800 # Node ID 22dfaefdf6eeced11357419f0351d55f587df02b # Parent 076fda162fa3c5c0b23ac0efc74c2a45f396fb80 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. diff --git a/sparse.py b/sparse.py --- a/sparse.py +++ b/sparse.py @@ -234,7 +234,7 @@ 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 @@ 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)