You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Alexander Maksimenko (JIRA)" <ji...@codehaus.org> on 2011/01/24 17:28:57 UTC

[jira] Created: (MRELEASE-637) hg not under root

hg not under root
-----------------

                 Key: MRELEASE-637
                 URL: http://jira.codehaus.org/browse/MRELEASE-637
             Project: Maven 2.x Release Plugin
          Issue Type: Bug
          Components: prepare
    Affects Versions: 2.1
         Environment: Maven 3.0
Windows 7
Mercurial 1.5.2
            Reporter: Alexander Maksimenko


When I call mvn release:prepare for project with sub-projects I got 

[INFO] EXECUTING: cmd.exe /X /C "hg commit --message "[maven-release-plugin] prepare release 
1.0.8.3" c:\dev\projects\test2\pom.xml C:\dev\projects\test2\generated\pom.xml"
[ERROR]
EXECUTION FAILED
  Execution of cmd : commit failed with exit code: -1.
  Working directory was:
    c:\dev\projects\test2
  Your Hg installation seems to be valid and complete.
    Hg version: 1.5.2 (OK)

When I call this command directly I've got

hg commit --message "[maven-release-plugin] prepare release" c:\dev\projects\test2\pom.xml C:\dev\projects\test2\generated\pom.xml
abort: C:\dev\projects\test2\generated\pom.xml not under root

So seems hg requires relative path to commited files
When I call 
hg commit --message "[maven-release-plugin] prepare release" pom.xml generated\pom.xml
everything is OK






-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Closed: (MRELEASE-637) hg not under root

Posted by "Alexander Maksimenko (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MRELEASE-637?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Maksimenko closed MRELEASE-637.
-----------------------------------------

    Resolution: Fixed

yes - when make cd C:\dev release performed successfully
thanks!

> hg not under root
> -----------------
>
>                 Key: MRELEASE-637
>                 URL: http://jira.codehaus.org/browse/MRELEASE-637
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: prepare
>    Affects Versions: 2.1
>         Environment: Maven 3.0
> Windows 7
> Mercurial 1.5.2
>            Reporter: Alexander Maksimenko
>
> When I call mvn release:prepare for project with sub-projects I got 
> [INFO] EXECUTING: cmd.exe /X /C "hg commit --message "[maven-release-plugin] prepare release 
> 1.0.8.3" c:\dev\projects\test2\pom.xml C:\dev\projects\test2\generated\pom.xml"
> [ERROR]
> EXECUTION FAILED
>   Execution of cmd : commit failed with exit code: -1.
>   Working directory was:
>     c:\dev\projects\test2
>   Your Hg installation seems to be valid and complete.
>     Hg version: 1.5.2 (OK)
> When I call this command directly I've got
> hg commit --message "[maven-release-plugin] prepare release" c:\dev\projects\test2\pom.xml C:\dev\projects\test2\generated\pom.xml
> abort: C:\dev\projects\test2\generated\pom.xml not under root
> So seems hg requires relative path to commited files
> When I call 
> hg commit --message "[maven-release-plugin] prepare release" pom.xml generated\pom.xml
> everything is OK

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Commented: (MRELEASE-637) hg not under root

Posted by "Reimo Daum (JIRA)" <ji...@codehaus.org>.
    [ http://jira.codehaus.org/browse/MRELEASE-637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=253678#action_253678 ] 

Reimo Daum commented on MRELEASE-637:
-------------------------------------

Hello,

just a suggestion - as Hg is casesensitive it might just a problem with that. As i can see from your log there are some files starting with capiltal letter and some not:

c:\dev\projects\test2\pom.xml 
C:\dev\projects\test2\generated\pom.xml

It depends on how you describe your Hg repository and from where are you executing your hg commands. For instance your command line console might be using different case (probably due to executing 'cd c:\dev\projects' instead of 'cd C:\dev\projects')

> hg not under root
> -----------------
>
>                 Key: MRELEASE-637
>                 URL: http://jira.codehaus.org/browse/MRELEASE-637
>             Project: Maven 2.x Release Plugin
>          Issue Type: Bug
>          Components: prepare
>    Affects Versions: 2.1
>         Environment: Maven 3.0
> Windows 7
> Mercurial 1.5.2
>            Reporter: Alexander Maksimenko
>
> When I call mvn release:prepare for project with sub-projects I got 
> [INFO] EXECUTING: cmd.exe /X /C "hg commit --message "[maven-release-plugin] prepare release 
> 1.0.8.3" c:\dev\projects\test2\pom.xml C:\dev\projects\test2\generated\pom.xml"
> [ERROR]
> EXECUTION FAILED
>   Execution of cmd : commit failed with exit code: -1.
>   Working directory was:
>     c:\dev\projects\test2
>   Your Hg installation seems to be valid and complete.
>     Hg version: 1.5.2 (OK)
> When I call this command directly I've got
> hg commit --message "[maven-release-plugin] prepare release" c:\dev\projects\test2\pom.xml C:\dev\projects\test2\generated\pom.xml
> abort: C:\dev\projects\test2\generated\pom.xml not under root
> So seems hg requires relative path to commited files
> When I call 
> hg commit --message "[maven-release-plugin] prepare release" pom.xml generated\pom.xml
> everything is OK

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira