[
https://issues.apache.org/jira/browse/SCM-168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17960584#comment-17960584
]
ASF GitHub Bot commented on SCM-168:
------------------------------------
jira-importer commented on issue #428:
URL: https://github.com/apache/maven-scm/issues/428#issuecomment-2964593958
**[Mike
Perham](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=mperham)**
commented
Are you diffing off of the maven 1.x SCM source code or an old beta or
alpha, John? Your diff, while recognizable, does not match up with the latest
codebase. Nonetheless, I'm applying your changes by hand.
> PerforceChangeLogConsumer should use relative paths
> ---------------------------------------------------
>
> Key: SCM-168
> URL: https://issues.apache.org/jira/browse/SCM-168
> Project: Maven SCM (Moved to GitHub Issues)
> Issue Type: Bug
> Components: maven-scm-provider-perforce
> Affects Versions: 1.0-beta-3
> Reporter: John Didion
> Assignee: Mike Perham
> Priority: Critical
> Fix For: 1.0-beta-3
>
> Attachments: PerforceChangeLogConsumer.diff
>
>
> It seems like all scm providers are dealing with relative paths, rather than
> absolute repository paths. PerforceCheckOutCommand is definitely doing this.
> PerforceChangeLogConsumer, however, does not, which means
> ChangeSet.containsFilename always returns false because it's comparing a
> relative path to an absolute one.
> There are two changes. First, in PerforceChangeLogCommand:
> {noformat}
> PerforceChangeLogConsumer consumer = new PerforceChangeLogConsumer(
> ((PerforceScmProviderRepository) repo).getPath(), startDate, endDate );
> {noformat}
> The attached diff is for the second set of changes, which are to
> PerforceChangeLogConsumer.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)