On Mon, 21 Dec 2015 14:31:03 +0000, COURONNE Nicolas wrote:
> I'm running tortoiseHg 3.0.2 with shelve extension under RedHat.
> I've directory links in my project that are tracked. The link changed 
> sometimes (typically a project dependency that need to be upgrade). But I 
> can't shelve them.
> When the shelve dialog opens, I select the directory link and click on the 
> arrow button, it brings me an error :
> 
>     #!python
>     ** Mercurial version (3.0.2).  TortoiseHg version (3.0.2)
>     ** Command:
>     ** CWD: /*****/testprj
>     ** Encoding: UTF-8
>     ** Extensions loaded: graphlog, extdiff, mercurial_keyring, shelve, 
> strip, mq, rebase, collapse
>     ** Python version: 2.7.9 (default, Apr 15 2015, 14:32:12) [GCC 4.4.7 
> 20120313 (Red Hat 4.4.7-4)]
>    ** System: Linux ****** 2.6.32-358.el6.x86_64 #1 SMP Tue Jan 29 11:47:41 
> EST 2013 x86_64
>     ** Qt-4.8.6 PyQt-4.11.3 QScintilla-2.8.4
>     Traceback (most recent call last):
>       File 
> "/opt/hgtools/lib/python2.7/site-packages/tortoisehg/hgqt/shelve.py", line 
> 211, in moveFileRight
>         self.browsea.removeFile(file)
>       File 
> "/opt/hgtools/lib/python2.7/site-packages/tortoisehg/hgqt/chunks.py", line 
> 393, in removeFile
>         repo.thgbackup(fullpath)
>       File 
> "/opt/hgtools/lib/python2.7/site-packages/tortoisehg/hgqt/thgrepo.py", line 
> 840, in thgbackup
>         shutil.copyfile(path, dest)
>       File "/opt/hgtools/lib/python2.7/shutil.py", line 82, in copyfile
>         with open(src, 'rb') as fsrc:
>     IOError: [Errno 21] Is a directory: '/****/testprj/jskpub'
> 
> But if I use the command line way, it works fine, I can shelve/unshelve 
> directory link without pb.
> Why is there a difference ? It's not the standard command that is executed ?

For historical reasons, TortoiseHg shelve is totally different from "hg shelve".
I suggest you using "hg shelve" because it is more robust and has better
merging support.

https://bitbucket.org/tortoisehg/thg/issues/3545/

> I use shelve dialog very often and it's not very useful to use command line
> only for directory links

You can use customtools (Settings -> Tools) to make "hg shelve" reachable from
toolbar or context menu. It isn't ideal, but will work for now.

------------------------------------------------------------------------------
_______________________________________________
Tortoisehg-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tortoisehg-discuss

Reply via email to