[issue3265] graft does not record origin of copy

Jesse Glick bugs at mercurial.selenic.com
Mon Feb 13 09:54:17 CST 2012


New submission from Jesse Glick <jesse.glick at oracle.com>:

In http://hg.netbeans.org/releases/ there is a cset 287a221bbd83 on the 
default branch which involves a couple of copy-and-modifies:

diff --git 
a/apisupport.installer/src/org/netbeans/modules/apisupport/installer/ui/Inst
allerPanel.java 
b/maven.apisupport/src/org/netbeans/modules/maven/apisupport/InstallerPanel.
java
copy from 
apisupport.installer/src/org/netbeans/modules/apisupport/installer/ui/Instal
lerPanel.java
copy to 
maven.apisupport/src/org/netbeans/modules/maven/apisupport/InstallerPanel.ja
va
--- 
a/apisupport.installer/src/org/netbeans/modules/apisupport/installer/ui/Inst
allerPanel.java
+++ 
b/maven.apisupport/src/org/netbeans/modules/maven/apisupport/InstallerPanel.
java
....

Using Hg 2.0.2 I grafted this to the release71_fixes branch, resulting in 
768529630e81, which does not show the new file as a copy:

diff --git 
a/maven.apisupport/src/org/netbeans/modules/maven/apisupport/InstallerPanel.
java 
b/maven.apisupport/src/org/netbeans/modules/maven/apisupport/InstallerPanel.
java
new file mode 100644
--- /dev/null
+++ 
b/maven.apisupport/src/org/netbeans/modules/maven/apisupport/InstallerPanel.
java
....

Note that the same operation using the Transplant extension correctly 
records the copy origin, so this is a "regression" if you treat graft as a 
replacement for transplant.

----------
messages: 19069
nosy: jglick
priority: bug
status: unread
title: graft does not record origin of copy

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3265>
____________________________________________________


More information about the Mercurial-devel mailing list