Ticket #909 (closed enhancement: fixed)

Opened 3 years ago

Last modified 3 years ago

[PATCH] Support setting of LineEnd perforce client specification property

Reported by: thomasthorsen Owned by:
Priority: patches-accepted Milestone: 0.8.2
Version: 0.8.0 Keywords: p4
Cc:

Description

Currently this is hardcoded to "local" in the P4 class (slave/commands/vcs.py):

client_spec += "LineEnd?: local

"

Out of necessity to change this to "share" to preserve UNIX line endings on our test systems, I made this change to the python files so that it is properly parameterized, so you can set it to whatever is required when using the P4 class. The change is of course backward compatible so the behaviour is unchanged if this (optional) extra parameter is not specified.

The change involves only a few extra lines in the two files: slave/commands/vcs.py steps/source.py

I've attached the two modified files.

Attachments

source.py Download (56.4 KB) - added by thomasthorsen 3 years ago.
buildbot/steps/source.py
vcs.py Download (73.3 KB) - added by thomasthorsen 3 years ago.
buildbot/slave/commands/vcs.py
909.patch Download (3.1 KB) - added by dustin 3 years ago.
buildbot-0.8.0-based.patch

Change History

Changed 3 years ago by thomasthorsen

buildbot/steps/source.py

Changed 3 years ago by thomasthorsen

buildbot/slave/commands/vcs.py

comment:1 Changed 3 years ago by dustin

  • Summary changed from Support setting of LineEnd perforce client specification property to [PATCH] Support setting of LineEnd perforce client specification property
  • Milestone changed from undecided to 0.8.2

comment:2 Changed 3 years ago by dustin

Patches are a lot easier for me to look at. If you're going to post full files, please tell me exactly what version they're written against. I think I can figure this out, though.

Changed 3 years ago by dustin

buildbot-0.8.0-based.patch

comment:3 Changed 3 years ago by Dustin J. Mitchell

add line-endings option to p4 command (no docs) - refs #909

Changeset: 58f091e06de3aaac954f81e4df12ccefc07b49ae

comment:4 Changed 3 years ago by Dustin J. Mitchell

  • Status changed from new to closed
  • Resolution set to fixed

documentation for p4line_end parameter - fixes #909

Changeset: 707c5f66b45e3009312fb372860b226845e1d4fb

Note: See TracTickets for help on using tickets.