changeset 13008:ac627ab0b3a5

merge with stable
author Martin Geisler <mg@aragost.com>
date Wed, 17 Nov 2010 09:17:55 +0100
parents cffa35529706 (current diff) e98bf6948092 (diff)
children 54be08fa4d1d
files
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/httprepo.py	Wed Nov 17 09:06:38 2010 +0100
+++ b/mercurial/httprepo.py	Wed Nov 17 09:17:55 2010 +0100
@@ -68,7 +68,7 @@
         raise util.Abort(_('operation not supported over http'))
 
     def _callstream(self, cmd, **args):
-        if cmd is 'pushkey':
+        if cmd == 'pushkey':
             args['data'] = ''
         data = args.pop('data', None)
         headers = args.pop('headers', {})
--- a/mercurial/posix.py	Wed Nov 17 09:06:38 2010 +0100
+++ b/mercurial/posix.py	Wed Nov 17 09:17:55 2010 +0100
@@ -144,7 +144,7 @@
         try:
             fd = os.open(path, O_SYMLINK)
         except OSError, err:
-            if err.errno is errno.ENOENT:
+            if err.errno == errno.ENOENT:
                 return path
             raise