##// END OF EJS Templates
debugsparse: abort if the repository is not sparse instead of ui.status()...
Pulkit Goyal -
r42155:f9344d04 default
parent child Browse files
Show More
@@ -318,9 +318,10 b' def debugsparse(ui, repo, *pats, **opts)'
318 if temporaryincludes:
318 if temporaryincludes:
319 ui.status(_("Temporarily Included Files (for merge/rebase):\n"))
319 ui.status(_("Temporarily Included Files (for merge/rebase):\n"))
320 ui.status(("\n".join(temporaryincludes) + "\n"))
320 ui.status(("\n".join(temporaryincludes) + "\n"))
321 return
321 else:
322 else:
322 ui.status(_('repo is not sparse\n'))
323 raise error.Abort(_('the debugsparse command is only supported on'
323 return
324 ' sparse repositories'))
324
325
325 if include or exclude or delete or reset or enableprofile or disableprofile:
326 if include or exclude or delete or reset or enableprofile or disableprofile:
326 sparse.updateconfig(repo, pats, opts, include=include, exclude=exclude,
327 sparse.updateconfig(repo, pats, opts, include=include, exclude=exclude,
General Comments 0
You need to be logged in to leave comments. Login now