##// END OF EJS Templates
clone: process 'lookup' return as an arbitrary symbol...
Boris Feld -
r38776:e06a10d3 @93 stable
parent child Browse files
Show More
@@ -731,8 +731,14 b' def clone(ui, peeropts, source, dest=Non'
731 uprev = None
731 uprev = None
732 status = None
732 status = None
733 if checkout is not None:
733 if checkout is not None:
734 if checkout in destrepo:
734 # Some extensions (at least hg-git and hg-subversion) have
735 # a peer.lookup() implementation that returns a name instead
736 # of a nodeid. We work around it here until we've figured
737 # out a better solution.
738 if len(checkout) == 20 and checkout in destrepo:
735 uprev = checkout
739 uprev = checkout
740 elif scmutil.isrevsymbol(destrepo, checkout):
741 uprev = scmutil.revsymbol(destrepo, checkout).node()
736 else:
742 else:
737 if update is not True:
743 if update is not True:
738 try:
744 try:
General Comments 0
You need to be logged in to leave comments. Login now