hgext/rebase.py
branchstable
changeset 29044 261c25372959
parent 29043 cf7de4aeb86b
child 29063 8ede973597fd
equal deleted inserted replaced
29043:cf7de4aeb86b 29044:261c25372959
  1242                     del opts['rev']
  1242                     del opts['rev']
  1243                 # positional argument from pull conflicts with rebase's own
  1243                 # positional argument from pull conflicts with rebase's own
  1244                 # --source.
  1244                 # --source.
  1245                 if 'source' in opts:
  1245                 if 'source' in opts:
  1246                     del opts['source']
  1246                     del opts['source']
       
  1247                 # revsprepull is the len of the repo, not revnum of tip.
       
  1248                 destspace = list(repo.changelog.revs(start=revsprepull))
       
  1249                 opts['_destspace'] = destspace
  1247                 try:
  1250                 try:
  1248                     rebase(ui, repo, **opts)
  1251                     rebase(ui, repo, **opts)
  1249                 except error.NoMergeDestAbort:
  1252                 except error.NoMergeDestAbort:
  1250                     # we can maybe update instead
  1253                     # we can maybe update instead
  1251                     rev, _a, _b = destutil.destupdate(repo)
  1254                     rev, _a, _b = destutil.destupdate(repo)