http://bugs.grommit.com/show_bug.cgi?id=541
Summary: wx2hg fails to handle renames in sub-workspaces
Product: SCM Migration
Version: unspecified
Platform: SPARC (32bit+64bit)
OS/Version: Solaris 11/Nevada
Status: NEW
Severity: major
Priority: P3
Component: wx2hg
AssignedTo: scm-migration-dev at opensolaris.org
ReportedBy: sommerfeld at sun.com
BugsThisDependsOn: 540
this bug was discovered through source inspection while fixing bug 540. not
known to be a stopper.
to reproduce:
create teamware clone of full /ws/onnv-clone (including usr/closed)
ws $WS
wx init
wx mv usr/closed/cmd/cmd-inet/usr.lib/in.iked/{main,ike}.c
then wx2hg the workspace
Transcript:
----
cd ws; ksh onnv-scm/usr/src/tools/scripts/wx2hg.sh -u onnv-wx2hg-rename-test
Doing out check:
Workspace nametable changed: sccs_dirs out of date
Updating /export/ws/sommerfeld/onnv-wx2hg-rename-test/wx/sccs_dirs...this may
take a few minutes.
Teamware parent /export/clones/onnv-clone has an hg twin
Cloning ssh://zhadum.east//export/clones/onnv-gate-hg
to /export/ws/sommerfeld/onnv-wx2hg-rename-test-hg
+ hg clone -r tip ssh://zhadum.east//export/clones/onnv-gate-hg
/export/ws/sommerfeld/onnv-wx2hg-rename-test-hg
requesting all changes
adding changesets
adding manifests
adding file changes
added 6950 changesets with 96581 changes to 50511 files
updating working directory
45544 files updated, 0 files merged, 0 files removed, 0 files unresolved
Cloning from ssh://zhadum.east//export/clones/onnv-gate-hg/usr/closed
to /export/ws/sommerfeld/onnv-wx2hg-rename-test-hg/usr/closed
requesting all changes
adding changesets
adding manifests
adding file changes
added 905 changesets with 7901 changes to 4374 files
updating working directory
3156 files updated, 0 files merged, 0 files removed, 0 files unresolved
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
rename usr/closed/cmd/cmd-inet/usr.lib/in.iked/main.c ->
usr/closed/cmd/cmd-inet/usr.lib/in.iked/ike.c
+ hg mv usr/closed/cmd/cmd-inet/usr.lib/in.iked/main.c
usr/closed/cmd/cmd-inet/usr.lib/in.iked/ike.c
abort: path 'usr/closed/cmd/cmd-inet/usr.lib/in.iked/main.c' is inside repo
'usr/closed'
+ fail rename failed.
wx2hg: rename failed.
Please run
hg --cwd /export/ws/sommerfeld/onnv-wx2hg-rename-test-hg update -C
before retrying.
------
There are a bunch of different cases to test to fix this in its full
generality:
- rename in main workspace (believed to work)
- rename in sub-workspace
- rename from main to sub
- rename from sub to main
- rename from one sub to a different sub
--
Configure bugmail: http://bugs.grommit.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.