[
https://issues.apache.org/jira/browse/SCM-439?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17961528#comment-17961528
]
ASF GitHub Bot commented on SCM-439:
------------------------------------
jira-importer opened a new issue, #658:
URL: https://github.com/apache/maven-scm/issues/658
**[William
Bernardet](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=wbernard)**
opened
**[SCM-439](https://issues.apache.org/jira/browse/SCM-439?redirect=false)** and
commented
The generation of the Hg command line doesn't append the files from the
provided fileset, current code just call the expandCommandLine method without
using the result array:
String[] command = new String[] { HgCommandConstants.REMOVE_CMD };
HgUtils.expandCommandLine( command, fileSet );
The code should be:
String[] command = new String[] { HgCommandConstants.REMOVE_CMD };
command = HgUtils.expandCommandLine( command, fileSet );
This is affecting 1.1:
https://svn.apache.org/repos/asf/maven/scm/tags/maven-scm-1.1/maven-scm-providers/maven-scm-provider-hg/src/main/java/org/apache/maven/scm/provider/hg/command/remove/HgRemoveCommand.java
and trunk:
https://svn.apache.org/repos/asf/maven/scm/trunk/maven-scm-providers/maven-scm-provider-hg/src/main/java/org/apache/maven/scm/provider/hg/command/remove/HgRemoveCommand.java
Br,
- William
---
**Affects:** 1.1
> Maven SCM Mercurial provider remove functionnality doesn't work
> ---------------------------------------------------------------
>
> Key: SCM-439
> URL: https://issues.apache.org/jira/browse/SCM-439
> Project: Maven SCM (Moved to GitHub Issues)
> Issue Type: Bug
> Affects Versions: 1.1
> Environment: Windows
> Reporter: William Bernardet
> Assignee: Olivier Lamy
> Priority: Major
> Fix For: 1.3
>
>
> The generation of the Hg command line doesn't append the files from the
> provided fileset, current code just call the expandCommandLine method without
> using the result array:
> String[] command = new String[] { HgCommandConstants.REMOVE_CMD };
> HgUtils.expandCommandLine( command, fileSet );
> The code should be:
> String[] command = new String[] { HgCommandConstants.REMOVE_CMD };
> command = HgUtils.expandCommandLine( command, fileSet );
> This is affecting 1.1:
> https://svn.apache.org/repos/asf/maven/scm/tags/maven-scm-1.1/maven-scm-providers/maven-scm-provider-hg/src/main/java/org/apache/maven/scm/provider/hg/command/remove/HgRemoveCommand.java
> and trunk:
> https://svn.apache.org/repos/asf/maven/scm/trunk/maven-scm-providers/maven-scm-provider-hg/src/main/java/org/apache/maven/scm/provider/hg/command/remove/HgRemoveCommand.java
> Br,
> - William
--
This message was sent by Atlassian Jira
(v8.20.10#820010)