mercurial/commands.py
branchstable
changeset 27911 645e78845383
parent 27899 78b9fdb844c1
child 27912 ae4e6b80f084
equal deleted inserted replaced
27910:d2c5ad3deccb 27911:645e78845383
  1326 
  1326 
  1327     Returns 0 on success, 1 if no changes found.
  1327     Returns 0 on success, 1 if no changes found.
  1328     """
  1328     """
  1329     revs = None
  1329     revs = None
  1330     if 'rev' in opts:
  1330     if 'rev' in opts:
  1331         revs = scmutil.revrange(repo, opts['rev'])
  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:
  1335         bcompression, cgversion, params = exchange.parsebundlespec(
  1338         bcompression, cgversion, params = exchange.parsebundlespec(
  1336                 repo, bundletype, strict=False)
  1339                 repo, bundletype, strict=False)