Ticket #909 (closed enhancement: fixed)
[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
Change History
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.
![[Buildbot Logo]](/chrome/site/header-text-transparent.png)

buildbot/steps/source.py