Show More
@@ -1328,7 +1328,10 b' def bundle(ui, repo, fname, dest=None, *' | |||||
1328 | """ |
|
1328 | """ | |
1329 | revs = None |
|
1329 | revs = None | |
1330 | if 'rev' in opts: |
|
1330 | if 'rev' in opts: | |
1331 |
revs = |
|
1331 | revstrings = opts['rev'] | |
|
1332 | revs = scmutil.revrange(repo, revstrings) | |||
|
1333 | if revstrings and not revs: | |||
|
1334 | raise error.Abort(_('no commits to bundle')) | |||
1332 |
|
1335 | |||
1333 | bundletype = opts.get('type', 'bzip2').lower() |
|
1336 | bundletype = opts.get('type', 'bzip2').lower() | |
1334 | try: |
|
1337 | try: |
@@ -728,4 +728,8 b' bundle single branch' | |||||
728 | checking files |
|
728 | checking files | |
729 | 4 files, 3 changesets, 5 total revisions |
|
729 | 4 files, 3 changesets, 5 total revisions | |
730 |
|
730 | |||
731 | $ cd .. |
|
731 | == Test bundling no commits | |
|
732 | ||||
|
733 | $ hg bundle -r 'public()' no-output.hg | |||
|
734 | abort: no commits to bundle | |||
|
735 | [255] |
General Comments 0
You need to be logged in to leave comments.
Login now