Comments
Patch
@@ -2098,8 +2098,7 @@ def fold(ui, repo, *revs, **opts):
else:
revs = ()
if not revs:
- ui.write_err('no revision to fold\n')
- return 1
+ raise util.Abort(_('no revisions specified'))
roots = repo.revs('roots(%ld)', revs)
if len(roots) > 1:
raise util.Abort("set has multiple roots")
@@ -614,8 +614,8 @@ Test fold
$ rm *.orig
$ hg fold
- no revision to fold
- [1]
+ abort: no revisions specified
+ [255]
$ hg fold 6 --rev 10
abort: cannot specify both --rev and a target revision
[255]