Error when cloning within a clone
Jamie Whitehouse
basil.whitehouse at genesyslab.com
Wed May 21 14:28:36 CDT 2008
First let me acknowledge that this isn't a typical Mercurial operation,
but has worked successfully in 0.9.5.
I'm using Mercurial to manage the source of a Java project built using
Maven. Maven has a release plugin that performs tagging and produces a
clean build from a tag. Part of that process is to checkout a clean
version from the tag into the projects build directory (Maven names this
'target'). What you wind up with is two clones, on within the other:
- the first clone being the development working directory created
manually using the command line hg tool (my-project)
- the second clone being the release build directory created by Maven
using the command line hg tool (my-project/target/checkout)
Using Mercurial 0.9.5 this worked fine but in 1.0 I get an error.
Luckily the hg command executed by Maven is shown and I've reproduced
this manually, below is the output. The ea-server.mainstream directory
is the root of the first clone. In this case I'm creating a release for
the installer-support sub-project and am running the Maven release
plugin from ea-server.mainstream/installer-support. The plugin tries to
create a clone into
ea-server.mainstream/installer-support/target/checkout . When doing so
an error occurs.
~/work/ea/mainstream/ea-server.mainstream/installer-support$ hg clone -r
installer-support-2.9.0.0.0_build3
http://hg/ea/mainstream/ea-server.mainstream /home/jwhitehouse/work/ea/mainstream/ea-server.mainstream/installer-support/target/checkout
requesting all changes
adding changesets
adding manifests
adding file changes
added 2681 changesets with 13344 changes to 3741 files
updating working directory
Traceback (most recent call last):
File "/usr/bin/hg", line 20, in <module>
mercurial.dispatch.run()
File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line
20, in run
sys.exit(dispatch(sys.argv[1:]))
File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line
29, in dispatch
return _runcatch(u, args)
File "/var/lib/python-support/python2.5/mercurial/dispatch.py", line
93, in _runcatch
ui.warn(_("abort: %s\n") % inst[1])
IndexError: tuple index out of range
My environment is Ubuntu 8.04 (Hardy) using the Debian Lenny packages
(http://packages.debian.org/lenny/mercurial). Other common Mercurial
operations have been successful.
If I perform the same clone to a temporary location without being in an
existing repository it works (as expected), but this isn't feasible for
the Maven release plugin.
~/work/ea/mainstream/ea-server.mainstream/installer-support$ hg clone -r
installer-support-2.9.0.0.0_build3
http://hg/ea/mainstream/ea-server.mainstream /tmp/checkoutrequesting all
changes
adding changesets
adding manifests
adding file changes
added 2681 changesets with 13344 changes to 3741 files
updating working directory
1897 files updated, 0 files merged, 0 files removed, 0 files unresolved
-------------------------------------------------------------------------------------------------------------------
CONFIDENTIALITY NOTICE: This e-mail and any files attached may contain confidential and proprietary information of Alcatel-Lucent and/or its affiliated entities. Access by the intended recipient only is authorized. Any liability arising from any party acting, or refraining from acting, on any information contained in this e-mail is hereby excluded. If you are not the intended recipient, please notify the sender immediately, destroy the original transmission and its attachments and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Copyright in this e-mail and any attachments belongs to Alcatel-Lucent and/or its affiliated entities.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://selenic.com/pipermail/mercurial/attachments/20080521/ee15ebd0/attachment.htm
More information about the Mercurial
mailing list