Ticket #134 (closed defect: fixed)

Opened 6 years ago

Last modified 5 years ago

mtn -> hg failures with the pidgin repository

Reported by: sdague Owned by: lele
Priority: major Milestone: VersionOne
Component: mtn Version: 0.9
Keywords: monotone Cc:

Description

The pidgin repository provides a *very large* mtn source to work with. I attempted to convert from mtn -> hg with tailor 0.9.28. There is an issue with the date parser that gets hit when people include the Date keyword in their comments.

Line 324 of monotone.py needs to be modified to bail out of the loop if the date format isn't what is expected.

elif pr("Date:"):

# monotone dates are expressed in ISO8601, always UTC

dateparts = pr.value.split('T') if len(dateparts) < 2:

break

assert len(dateparts) >= 2, dateparts

Otherwise you'll get a number of fails in trying to convert the pidgin mtn repo to anything else.

Change History

comment:1 Changed 6 years ago by HenryN

Replace "mtn log" with "mtn list certs" avoids these problems.  http://www.henrynestler.com/tailor/patches-breakout/monotone-log-replaced-by-list-certs.patch

See also Ticket #97, and latest full patch:  http://www.henrynestler.com/tailor/tailor-2007*.patch

comment:2 Changed 5 years ago by lele

  • Status changed from new to closed
  • Resolution set to fixed
  • Component changed from tailor to mtn

I assume this is fixed, as Henry's patches have been integrated.

Note: See TracTickets for help on using tickets.