maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Osipov (JIRA)" <j...@codehaus.org>
Subject [jira] (SCM-427) HgUpdateCommand
Date Tue, 25 Nov 2014 20:32:14 GMT

     [ https://jira.codehaus.org/browse/SCM-427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Michael Osipov closed SCM-427.
------------------------------

    Resolution: Won't Fix

Please refer to https://cwiki.apache.org/confluence/display/MAVEN/The+Great+JIRA+Cleanup+of+2014
if you're wondering why this issue was closed out.

> HgUpdateCommand
> ---------------
>
>                 Key: SCM-427
>                 URL: https://jira.codehaus.org/browse/SCM-427
>             Project: Maven SCM
>          Issue Type: Bug
>          Components: maven-scm-provider-mercurial (hg)
>    Affects Versions: 1.1
>         Environment: $ java -version
> java version "1.5.0_16"
> Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_16-b06-284)
> Java HotSpot(TM) Client VM (build 1.5.0_16-133, mixed mode, sharing)
> $ mvn -version
> Maven version: 2.0.9
> Java version: 1.5.0_16
> OS name: "mac os x" version: "10.5.5" arch: "i386" Family: "unix"
> $ uname -a
> Darwin SilverMidgetII.lan 9.5.0 Darwin Kernel Version 9.5.0: Wed Sep  3 11:29:43 PDT
2008; root:xnu-1228.7.58~1/RELEASE_I386 i386
> $ hg --version
> Mercurial Distributed SCM (version 1.0.2)
>            Reporter: Rohan Holt
>             Fix For: 1.x
>
>
> In HgUpdateCommand.java the following steps are performed
> hg pull -r tip        
> hg id
> hg diff -r -1
> hg log --verbose
> Firstly, the working copies of the files are never updated by any of these commands,
only the local repository is updated..
> This can be verified using the following test:
> $mvn -Ptck -Dtest=HgUpdateCommandTckTest test
> -------------------------------------------------------
>  T E S T S
> -------------------------------------------------------
> Running org.apache.maven.scm.provider.hg.command.update.HgUpdateCommandTckTest
> EXECUTING: /bin/sh -c cd /Users/rholt/Developer/maven-scm-provider-hg/target/test-branch
&& hg init
> EXECUTING: /bin/sh -c cd /Users/rholt/Developer/maven-scm-provider-hg/target/test-branch
&& hg add /Users/rholt/Developer/maven-scm-provider-hg/target/test-branch/pom.xml
/Users/rholt/Developer/maven-scm-provider-hg/target/test-branch/readme.txt /Users/rholt/Developer/maven-scm-provider-hg/target/test-branch/src/main/java/Application.java
/Users/rholt/Developer/maven-scm-provider-hg/target/test-branch/src/test/java/Test.java
> EXECUTING: /bin/sh -c cd /Users/rholt/Developer/maven-scm-provider-hg/target/test-branch
&& hg commit --message 'Add files to test branch'
> [INFO] Removing /Users/rholt/Developer/maven-scm-provider-hg/target/scm-test/working-copy
> [INFO] EXECUTING: /bin/sh -c cd /Users/rholt/Developer/maven-scm-provider-hg/target/scm-test
&& hg clone -r tip /Users/rholt/Developer/maven-scm-provider-hg/target/test-branch
/Users/rholt/Developer/maven-scm-provider-hg/target/scm-test/working-copy
> [INFO] EXECUTING: /bin/sh -c cd /Users/rholt/Developer/maven-scm-provider-hg/target/scm-test/working-copy
&& hg locate
> [INFO] Removing /Users/rholt/Developer/maven-scm-provider-hg/target/scm-test/updating-copy
> [INFO] EXECUTING: /bin/sh -c cd /Users/rholt/Developer/maven-scm-provider-hg/target/scm-test
&& hg clone -r tip /Users/rholt/Developer/maven-scm-provider-hg/target/test-branch
/Users/rholt/Developer/maven-scm-provider-hg/target/scm-test/updating-copy
> [INFO] EXECUTING: /bin/sh -c cd /Users/rholt/Developer/maven-scm-provider-hg/target/scm-test/updating-copy
&& hg locate
> [INFO] EXECUTING: /bin/sh -c cd /Users/rholt/Developer/maven-scm-provider-hg/target/scm-test/working-copy
&& hg add --verbose project.xml
> [INFO] [project.xml:added]
> [INFO] EXECUTING: /bin/sh -c cd /Users/rholt/Developer/maven-scm-provider-hg/target/scm-test/working-copy
&& hg add --verbose src/test/java/org
> [INFO] EXECUTING: /bin/sh -c cd /Users/rholt/Developer/maven-scm-provider-hg/target/scm-test/working-copy
&& hg add --verbose src/main/java/org
> [INFO] [src/main/java/org/Foo.java:added]
> [INFO] EXECUTING: /bin/sh -c cd /Users/rholt/Developer/maven-scm-provider-hg/target/scm-test/working-copy
&& hg add --verbose src/main/java/org/Foo.java
> [INFO] [src/main/java/org/Foo.java:added]
> [INFO] EXECUTING: /bin/sh -c cd /Users/rholt/Developer/maven-scm-provider-hg/target/scm-test/working-copy
&& hg status
> [INFO] [readme.txt:modified]
> [INFO] [project.xml:added]
> [INFO] [src/main/java/org/Foo.java:added]
> [INFO] EXECUTING: /bin/sh -c cd /Users/rholt/Developer/maven-scm-provider-hg/target/scm-test/working-copy
&& hg commit --message 'No msg'
> [INFO] EXECUTING: /bin/sh -c cd /Users/rholt/Developer/maven-scm-provider-hg/target/scm-test/working-copy
&& hg push /Users/rholt/Developer/maven-scm-provider-hg/target/test-branch
> [INFO] EXECUTING: /bin/sh -c cd /Users/rholt/Developer/maven-scm-provider-hg/target/scm-test/updating-copy
&& hg pull -r tip
> [INFO] EXECUTING: /bin/sh -c cd /Users/rholt/Developer/maven-scm-provider-hg/target/scm-test/updating-copy
&& hg id
> [INFO] EXECUTING: /bin/sh -c cd /Users/rholt/Developer/maven-scm-provider-hg/target/scm-test/updating-copy
&& hg diff -r -1
> [INFO] EXECUTING: /bin/sh -c cd /Users/rholt/Developer/maven-scm-provider-hg/target/scm-test/updating-copy
&& hg log --verbose
> $cd /Users/rholt/Developer/maven-scm-provider-hg/target/scm-test/updating-copy
> $find . -name Foo.java
> $ hg update
> 3 files updated, 0 files merged, 0 files removed, 0 files unresolved
> $ find . -name Foo.java
> ./src/main/java/org/Foo.java
> I picked this fact up when using continuum as the newly deploy build never contained
the recent changes



--
This message was sent by Atlassian JIRA
(v6.1.6#6162)

Mime
View raw message