[yt-svn] commit/yt: ngoldbaum: Merged in ngoldbaum/yt (pull request #2108)

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Wed Apr 6 11:13:42 PDT 2016


1 new commit in yt:

https://bitbucket.org/yt_analysis/yt/commits/9488a6181a06/
Changeset:   9488a6181a06
Branch:      yt
User:        ngoldbaum
Date:        2016-04-06 18:13:36+00:00
Summary:     Merged in ngoldbaum/yt (pull request #2108)

Be more defensive about guessing that we're installing from a repository.
Affected #:  1 file

diff -r b446990d1ee3cf51fe5860b07ee5fea3e27b70da -r 9488a6181a069af1fbc2339b144039342ea1a437 setupext.py
--- a/setupext.py
+++ b/setupext.py
@@ -138,6 +138,10 @@
         import hglib
     except ImportError:
         return None
-    with hglib.open(target_dir) as repo:
-        changeset = repo.identify(id=True, branch=True).strip().decode('utf8')
+    try:
+        with hglib.open(target_dir) as repo:
+            changeset = repo.identify(
+                id=True, branch=True).strip().decode('utf8')
+    except hglib.error.ServerError:
+        return None
     return changeset

Repository URL: https://bitbucket.org/yt_analysis/yt/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-svn-spacepope.org/attachments/20160406/55276c5b/attachment.htm>


More information about the yt-svn mailing list