mercurial/hg.py
branchstable
changeset 17342 471f30d360ea
parent 17248 6ffb35b2284c
child 17671 fdd0fc046cf1
child 17703 4a07d2ff7c66
equal deleted inserted replaced
17340:96189d60d810 17342:471f30d360ea
   396 
   396 
   397             destrepo.ui.setconfig('paths', 'default', defaulturl)
   397             destrepo.ui.setconfig('paths', 'default', defaulturl)
   398 
   398 
   399             if update:
   399             if update:
   400                 if update is not True:
   400                 if update is not True:
   401                     checkout = srcrepo.lookup(update)
   401                     checkout = srcpeer.lookup(update)
   402                 for test in (checkout, 'default', 'tip'):
   402                 for test in (checkout, 'default', 'tip'):
   403                     if test is None:
   403                     if test is None:
   404                         continue
   404                         continue
   405                     try:
   405                     try:
   406                         uprev = destrepo.lookup(test)
   406                         uprev = destrepo.lookup(test)