mercurial/hg.py
changeset 27637 b502138f5faa
parent 27404 1cf3543cc780
child 28020 cffa46cbdb8f
child 28289 d493d64757eb
equal deleted inserted replaced
27636:21b363bd87dc 27637:b502138f5faa
    50     peer = other.peer() # a courtesy to callers using a localrepo for other
    50     peer = other.peer() # a courtesy to callers using a localrepo for other
    51     hashbranch, branches = branches
    51     hashbranch, branches = branches
    52     if not hashbranch and not branches:
    52     if not hashbranch and not branches:
    53         x = revs or None
    53         x = revs or None
    54         if util.safehasattr(revs, 'first'):
    54         if util.safehasattr(revs, 'first'):
    55             y =  revs.first()
    55             y = revs.first()
    56         elif revs:
    56         elif revs:
    57             y = revs[0]
    57             y = revs[0]
    58         else:
    58         else:
    59             y = None
    59             y = None
    60         return x, y
    60         return x, y