[Issue 4943] New - Unable to parse history for /author checkins

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Issue 4943] New - Unable to parse history for /author checkins

rurbonas
https://hudson.dev.java.net/issues/show_bug.cgi?id=4943
                 Issue #|4943
                 Summary|Unable to parse history for /author checkins
               Component|hudson
                 Version|current
                Platform|All
              OS/Version|All
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|tfs
             Assigned to|redsolo
             Reported by|rurbonas






------- Additional comments from [hidden email] Tue Nov 24 18:38:06 +0000 2009 -------
TFS allows certain entitled users to perform checkins on behalf of another user
using the /author command-line switch (see: http://msdn.microsoft.com/en-
us/library/c327ca1z(VS.80).aspx). When the tf history command is run, the
history records for files checked-in in this manner have an extra line of
information between the "User" and "Date" lines, which reports the name of the
user who actually checked the content in.

For example, the following two (sanitized) records were returned from tf
history, where CS45212 was checked-in using the /author switch and CS15005 was
checked-in without the /author switch:

-------------------------------------------------------------------------------
Changeset: 45212
User: USERA
Checked in by: USERB
Date: Tuesday, November 24, 2009 10:59:13 AM

Comment:
  Sample checkin with /author

Items:
  edit $/PROJECT/PATH/TO/FILE.txt

Policy Warnings:
  Override Reason:
    XXXX XXXXXXX XX XXXXX
  Messages:
    XXXXXXXX XXXXX XX XXXXXXXX XXXXXXX XXXX.
    XXXXXXXX XXXXX XX XXXXXXXX XX XXXXXXX.

-------------------------------------------------------------------------------
Changeset: 15005
User: USERC
Date: Monday, April 06, 2009 8:29:28 AM

Comment:
  Sample normal checkin (without /author)

Items:
  edit $/PROJECT/PATH/TO/FILE.txt

Check-in Notes:
  XXXXXXX XXXX:
    XXXXXXX XXXXXX
  XXXX XXXXXXXXXXX:
    XXXXXX, XXXX;
  XXXXXXX XXXXX XXX:
    X
  XXXXXXXX XXXXXXXXX:
  XX XXXXXXXXX:


When we hit a checkin performed with the /author switch, the tfs plugin is
trying to parse the "Checked in by" as a date and reports a failed source
retrieval with the following message:

FATAL: Unparseable date: "USERB"

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]