Error on push when no push URL exists

Ashwin Nanjappa avatarAshwin Nanjappa created an issue

I get this error when I tried to push using TortoiseHg GUI. I later discovered that this repository was only local and had no URL to push to. Still, a user should not be seeing an error message in such a case. Instead, a message informing him that no URL to push to exists would be better.

Here is the error reported by TortoiseHg:

** Mercurial version (2.2.2).  TortoiseHg version (2.4.1)
** Command: --nofork synch
** CWD: C:\Users\joe\stuffdir
** Encoding: cp1252
** Extensions loaded: 
** Python version: 2.6.6 (r266:84297, Aug 24 2010, 18:13:38) [MSC v.1500 64 bit (AMD64)]
** Windows version: (6, 1, 7601, 2, 'Service Pack 1')
** Processor architecture: x64
** Qt-4.7.4 PyQt-4.8.6
Traceback (most recent call last):
  File "tortoisehg\hgqt\sync.pyo", line 154, in <lambda>
  File "tortoisehg\hgqt\sync.pyo", line 1099, in pushclicked
  File "tortoisehg\hgqt\sync.pyo", line 774, in run
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str'

Comments (2)

  1. Log in to comment
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.