Feature Requests item #1904174, was opened at 2008-02-28 12:43
Message generated for change (Comment added) made by sborho
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=968357&aid=1904174&group_id=199155

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Interface Improvements (example)
Group: Next Release (example)
>Status: Closed
Priority: 5
Private: No
Submitted By: amino acid (aminoacid)
Assigned to: Nobody/Anonymous (nobody)
Summary: Auto-populate source/destination fields

Initial Comment:
When you right-click in/on a folder in Windows explorer, then select a 
TortoiseHg command (such as "clone a repository"), you would expect the 
destination field to be automatically set to the folder you clicked from. 
Instead, you have to click "Browse" and manually select the folder, or type it 
in by hand.

An example scenario for this feature:

User X creates a folder "test" located in C:\Documents and 
Settings\X\Desktop\Projects. X then right-clicks on "test", selects 
TortoiseHg->Clone a Repository. The Clone dialog pops up, with the Destination 
path set to C:\Documents and Settings\X\Desktop\Projects\test.

This feature should be implemented for all dialogs that are accessible via the 
context menu, not just the clone example listed here.

Enhancements such as this will make TortoiseHg much easier to use and simplify 
the workflow for people who are converting from TortoiseSVN, etc.

----------------------------------------------------------------------

>Comment By: Steve Borho (sborho)
Date: 2009-03-05 00:18

Message:
moved to bb

----------------------------------------------------------------------

Comment By: amino acid (aminoacid)
Date: 2008-02-29 08:06

Message:
Logged In: YES 
user_id=1739017
Originator: YES

Tksoh,

You are correct, removing a directory that exists could be disastrous. But
a simple workaround is to check if the working directory exists, and if so
append the repository name to the path. This is what SVN does, and it makes
a lot of sense for Hg to do the same. Even if Hg doesn't support this
natively it would be nice for TortoiseHg to provide this capability.

Example: user clicks on or in the "test" folder, selects TortoiseHg->Clone
repository, the clone dialog auto-fills destination with path to "test".
Then user clones the example "hello" repository from the tutorial, and
TortoiseHg appends "hello" to the destination path.

So, the end result is the hello repository is checked out into
"test/hello", whereas it would have been checked out to just "test" if test
didn't exist.

Would this work for you? I really appreciate all the hard work you guys
put in, and I'm excited to see TortoiseHg grow into the mainstream and
become widely used.

----------------------------------------------------------------------

Comment By: TK Soh (tksoh)
Date: 2008-02-28 21:54

Message:
Logged In: YES 
user_id=411637
Originator: NO

Pre-filling the clone destination field does seems more intuitive.
However, the clone dialog call hg clone to do the cloning, and hg clone
doesn't like it if the destination target already exists. We can probably
remove the directory before calling hg clone, but deleting directory can be
potentially disastrous, so I don't feel very comfortable doing so from
within TortoiseHg.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=968357&aid=1904174&group_id=199155

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
Tortoisehg-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-develop

Reply via email to