Error while importing patch from the clipboard
Created originally on Bitbucket by j2jensen (James Jensen)
I'm new to Mercurial, and was trying to figure out how to apply a set of changes to multiple branches. I right-clicked a change set and chose Export>Copy Patch. Then I used the Repository menu > Import > Import from Clipboard.
Following is what was added to the clipboard:
{{{
HG changeset patch
james@truenorthlogic.com
User James JensenDate 1309380044 21600
Node ID c52b9021c42a7aed0f3fedb8aec41f6ae667f99f
Parent a438166ecbbac912a5b2475b73d7a08b353b5928
Testing commits not made to the head.
diff -r a438166ecbba -r c52b9021c42a Website/LogTime.aspx.cs --- a/Website/LogTime.aspx.cs Wed Jun 29 12:11:54 2011 -0600 +++ b/Website/LogTime.aspx.cs Wed Jun 29 14:40:44 2011 -0600 @@ -1,15 +1,12 @@ using System; using System.Collections.Generic; -using System.Linq; -using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.Security; using TimesheetBL; using TimesheetDAL; -using TimesheetBL.DisplayObjects;
-public partial class LogTime : System.Web.UI.Page +public partial class LogTime : Page { private UserBO userBO = new UserBO(); private EntityCategoryBo catBO = new EntityCategoryBo();
}}}
However, I noticed that when I pasted this into NotePad, the line with the text "Using System;" is displayed in a really small font. Also, when I move the cursor along that line, it pauses just before the "u" in "using" as if there's an invisible character there.
Here's the error information it gave:
{{{ #!python ** Mercurial version (1.8.4). TortoiseHg version (2.0.5) ** Command: log ** CWD: D:\Work\timesheets ** Extensions loaded: fixfrozenexts ** 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.1 PyQt-4.8.3 Traceback (most recent call last): File "tortoisehg\hgqt\thgimport.pyo", line 195, in getcliptext File "tortoisehg\util\hglib.pyo", line 75, in fromunicode File "encodings\cp1252.pyo", line 12, in encode UnicodeEncodeError: 'charmap' codec can't encode character u'\ufeff' in position 435: character maps to
}}}