1. TortoiseHg
  2. TortoiseHg
  3. thg
  4. Issues
Issue #3430 resolved

Unable to pull from repository with projrc

Anonymous created an issue

Every time I try to pull it stops with following message. I think it is the moment when it tryies to load the new projrc.

** Mercurial version (2.7.2).  TortoiseHg version (2.9.2)
** Command: --nofork workbench
** CWD: C:\Users\dv\Documents\Diego\Sviluppo\Ecoprogetti\Macchine\Ecosun10L2
** Encoding: cp1252
** Extensions loaded: convert, projrc, rebase, mq
** Python version: 2.7.3 (default, Apr 10 2012, 23:24:47) [MSC v.1500 64 bit (AMD64)]
** Windows version: sys.getwindowsversion(major=6, minor=2, build=9200, platform=2, service_pack='')
** Processor architecture: x64
** Qt-4.8.4 PyQt-4.10.2 QScintilla-2.7.2
Traceback (most recent call last):
  File "tortoisehg\hgqt\thread.pyo", line 283, in run
  File "tortoisehg\util\hglib.pyo", line 884, in dispatch
  File "mercurial\dispatch.pyo", line 778, in _dispatch
  File "mercurial\dispatch.pyo", line 549, in runcommand
  File "mercurial\dispatch.pyo", line 869, in _runcommand
  File "mercurial\dispatch.pyo", line 840, in checkargs
  File "mercurial\dispatch.pyo", line 775, in <lambda>
  File "mercurial\util.pyo", line 507, in check
  File "mercurial\extensions.pyo", line 143, in wrap
  File "mercurial\util.pyo", line 507, in check
  File "hgext\mq.pyo", line 3533, in mqcommand
  File "mercurial\util.pyo", line 507, in check
  File "mercurial\extensions.pyo", line 143, in wrap
  File "mercurial\util.pyo", line 507, in check
  File "hgext\rebase.pyo", line 811, in pullrebase
  File "mercurial\util.pyo", line 507, in check
  File "mercurial\commands.pyo", line 4598, in pull
  File "hgext\projrc.pyo", line 633, in pull
  File "hgext\projrc.pyo", line 451, in transferprojrc
TypeError: promptchoice() got multiple values for keyword argument 'default'

Let me know if and which other info are needed.

Comments (6)

  1. Diego Mazzaro

    Thanks for the immediate fix! I downloaded the fixed projrc.py from the repository.. ..but, sorry for my stupid question: "how to put it in my currently installed TortoiseHg (2.9.2)?" I didn't find the same fole in order to replace if for example... Now it is almost the end of the month so the new release is close and I can wait.. ..but I was curious to know how to do anyway.

  2. Angel Ezquerra

    The simplest solution would be to clone the projrc repository from bitbucket (https://bitbucket.org/aragost/projrc) and then configure TortoiseHg to use it. To do so, open the mercurial settings file by going to "File / Settings", click "Edit File" and look for the "[extensions]" section. In there you may already have a projrc entry (with the following text "projrc ="). If you don't have it you must create it. Then, to point the projrc extension to your projrc clone, simply type the path to projrc.py in there. For example, if you cloned the projrc repository into "C:\Users\myuser\myrepos\projrc", you must type the following:

    projrc = C:\Users\myuser\myrepos\projrc\projrc.py

    Then you must restart TortoiseHg and everything should work fine.



  3. Log in to comment