mercurial/simplemerge.py
changeset 21272 4aeb7a6029ba
parent 16687 e34106fa0dc3
child 22023 f18830651811
equal deleted inserted replaced
21271:4adc090fa2fb 21272:4aeb7a6029ba
   414         return text
   414         return text
   415 
   415 
   416     name_a = local
   416     name_a = local
   417     name_b = other
   417     name_b = other
   418     labels = opts.get('label', [])
   418     labels = opts.get('label', [])
   419     if labels:
   419     if len(labels) > 0:
   420         name_a = labels.pop(0)
   420         name_a = labels[0]
   421     if labels:
   421     if len(labels) > 1:
   422         name_b = labels.pop(0)
   422         name_b = labels[1]
   423     if labels:
   423     if len(labels) > 2:
   424         raise util.Abort(_("can only specify two labels."))
   424         raise util.Abort(_("can only specify two labels."))
   425 
   425 
   426     try:
   426     try:
   427         localtext = readfile(local)
   427         localtext = readfile(local)
   428         basetext = readfile(base)
   428         basetext = readfile(base)