This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 123717

Summary: Export Diff should create parent folder.
Product: versioncontrol Reporter: Peter Pis <ppis>
Component: MercurialAssignee: issues@versioncontrol <issues>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: thread dump
hg log
Proposed patch

Description Peter Pis 2007-12-10 06:41:04 UTC
Product Version: NetBeans IDE 6.0 (Build 200711261600)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)
Userdir: D:\ide\60daily\user3

Steps:
1. Open project under Hg control.
2. Select project root and invoke "Versioning | Export Diff..." main menu action. Choose a directory that doesn't exist.

Export fails because the target directory doesn't exist. This should be handled and directory should be created if it
doesn't exist if user's permissions allow the directory creation.
Comment 1 Peter Pis 2007-12-10 07:03:54 UTC
Created attachment 54054 [details]
thread dump
Comment 2 Peter Pis 2007-12-10 07:06:36 UTC
Created attachment 54055 [details]
hg log
Comment 3 John Rice 2007-12-10 11:57:08 UTC
Created attachment 54081 [details]
Proposed patch
Comment 4 John Rice 2007-12-11 22:12:11 UTC
IDE:-------------------------------------------------
IDE: [11/12/07 22:11] Committing started
Checking in HgCommand.java;
/cvs/versioncontrol/mercurial/src/org/netbeans/modules/mercurial/util/HgCommand.java,v  <--  HgCommand.java
new revision: 1.61; previous revision: 1.60
done
IDE: [11/12/07 22:11] Committing finished
Comment 5 Peter Pis 2008-01-18 08:55:09 UTC
Verified.