Details
Details
- Reviewers
indygreg - Group Reviewers
hg-reviewers - Commits
- rHGdd071b34e60b: cvsps: portably convert int to bytes
Diff Detail
Diff Detail
- Repository
- rHG Mercurial
- Lint
Lint Skipped - Unit
Unit Tests Skipped
indygreg |
hg-reviewers |
Lint Skipped |
Unit Tests Skipped |
Path | Packages | |||
---|---|---|---|---|
M | hgext/convert/cvsps.py (3 lines) |
Commit | Parents | Author | Summary | Date |
---|---|---|---|---|
Augie Fackler | Apr 27 2018, 1:26 AM |
Status | Author | Revision | |
---|---|---|---|
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 | ||
Closed | durin42 |
ui.write(('Log:\n')) | ui.write(('Log:\n')) | ||||
ui.write('%s\n\n' % cs.comment) | ui.write('%s\n\n' % cs.comment) | ||||
ui.write(('Members: \n')) | ui.write(('Members: \n')) | ||||
for f in cs.entries: | for f in cs.entries: | ||||
fn = f.file | fn = f.file | ||||
if fn.startswith(opts["prefix"]): | if fn.startswith(opts["prefix"]): | ||||
fn = fn[len(opts["prefix"]):] | fn = fn[len(opts["prefix"]):] | ||||
ui.write('\t%s:%s->%s%s \n' % ( | ui.write('\t%s:%s->%s%s \n' % ( | ||||
fn, '.'.join([str(x) for x in f.parent]) or 'INITIAL', | fn, | ||||
'.'.join([b"%d" % x for x in f.parent]) or 'INITIAL', | |||||
'.'.join([(b"%d" % x) for x in f.revision]), | '.'.join([(b"%d" % x) for x in f.revision]), | ||||
['', '(DEAD)'][f.dead])) | ['', '(DEAD)'][f.dead])) | ||||
ui.write('\n') | ui.write('\n') | ||||
# have we seen the start tag? | # have we seen the start tag? | ||||
if revisions and off: | if revisions and off: | ||||
if revisions[0] == (b"%d" % cs.id) or \ | if revisions[0] == (b"%d" % cs.id) or \ | ||||
revisions[0] in cs.tags: | revisions[0] in cs.tags: | ||||
off = False | off = False | ||||
# see if we reached the end tag | # see if we reached the end tag | ||||
if len(revisions) > 1 and not off: | if len(revisions) > 1 and not off: | ||||
if revisions[1] == (b"%d" % cs.id) or \ | if revisions[1] == (b"%d" % cs.id) or \ | ||||
revisions[1] in cs.tags: | revisions[1] in cs.tags: | ||||
break | break |