Mercurial > hg
comparison hgext/convert/cvsps.py @ 17956:a08775ec89f2
i18n: wrap false positives for translation detection
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 25 Nov 2012 13:53:47 -0600 |
parents | e7cfe3587ea4 |
children | 1b7b5975793f |
comparison
equal
deleted
inserted
replaced
17955:4ae21a7568f3 | 17956:a08775ec89f2 |
---|---|
799 | 799 |
800 if not off: | 800 if not off: |
801 # Note: trailing spaces on several lines here are needed to have | 801 # Note: trailing spaces on several lines here are needed to have |
802 # bug-for-bug compatibility with cvsps. | 802 # bug-for-bug compatibility with cvsps. |
803 ui.write('---------------------\n') | 803 ui.write('---------------------\n') |
804 ui.write('PatchSet %d \n' % cs.id) | 804 ui.write(('PatchSet %d \n' % cs.id)) |
805 ui.write('Date: %s\n' % util.datestr(cs.date, | 805 ui.write(('Date: %s\n' % util.datestr(cs.date, |
806 '%Y/%m/%d %H:%M:%S %1%2')) | 806 '%Y/%m/%d %H:%M:%S %1%2'))) |
807 ui.write('Author: %s\n' % cs.author) | 807 ui.write(('Author: %s\n' % cs.author)) |
808 ui.write('Branch: %s\n' % (cs.branch or 'HEAD')) | 808 ui.write(('Branch: %s\n' % (cs.branch or 'HEAD'))) |
809 ui.write('Tag%s: %s \n' % (['', 's'][len(cs.tags) > 1], | 809 ui.write(('Tag%s: %s \n' % (['', 's'][len(cs.tags) > 1], |
810 ','.join(cs.tags) or '(none)')) | 810 ','.join(cs.tags) or '(none)'))) |
811 branchpoints = getattr(cs, 'branchpoints', None) | 811 branchpoints = getattr(cs, 'branchpoints', None) |
812 if branchpoints: | 812 if branchpoints: |
813 ui.write('Branchpoints: %s \n' % ', '.join(branchpoints)) | 813 ui.write(('Branchpoints: %s \n' % ', '.join(branchpoints))) |
814 if opts["parents"] and cs.parents: | 814 if opts["parents"] and cs.parents: |
815 if len(cs.parents) > 1: | 815 if len(cs.parents) > 1: |
816 ui.write('Parents: %s\n' % | 816 ui.write(('Parents: %s\n' % |
817 (','.join([str(p.id) for p in cs.parents]))) | 817 (','.join([str(p.id) for p in cs.parents])))) |
818 else: | 818 else: |
819 ui.write('Parent: %d\n' % cs.parents[0].id) | 819 ui.write(('Parent: %d\n' % cs.parents[0].id)) |
820 | 820 |
821 if opts["ancestors"]: | 821 if opts["ancestors"]: |
822 b = cs.branch | 822 b = cs.branch |
823 r = [] | 823 r = [] |
824 while b: | 824 while b: |
825 b, c = ancestors[b] | 825 b, c = ancestors[b] |
826 r.append('%s:%d:%d' % (b or "HEAD", c, branches[b])) | 826 r.append('%s:%d:%d' % (b or "HEAD", c, branches[b])) |
827 if r: | 827 if r: |
828 ui.write('Ancestors: %s\n' % (','.join(r))) | 828 ui.write(('Ancestors: %s\n' % (','.join(r)))) |
829 | 829 |
830 ui.write('Log:\n') | 830 ui.write(('Log:\n')) |
831 ui.write('%s\n\n' % cs.comment) | 831 ui.write('%s\n\n' % cs.comment) |
832 ui.write('Members: \n') | 832 ui.write(('Members: \n')) |
833 for f in cs.entries: | 833 for f in cs.entries: |
834 fn = f.file | 834 fn = f.file |
835 if fn.startswith(opts["prefix"]): | 835 if fn.startswith(opts["prefix"]): |
836 fn = fn[len(opts["prefix"]):] | 836 fn = fn[len(opts["prefix"]):] |
837 ui.write('\t%s:%s->%s%s \n' % ( | 837 ui.write('\t%s:%s->%s%s \n' % ( |