[yt-svn] commit/yt: 2 new changesets

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


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/a1c151222bf8/
Changeset:   a1c151222bf8
Branch:      yt
User:        ngoldbaum
Date:        2016-04-04 15:05:57+00:00
Summary:     Be more defensive about guessing that we're installing from a repository.
Affected #:  1 file

diff -r 395a07dcd3a54e1840f9ddab9a4b3ed49f780c28 -r a1c151222bf825f4dd88c187119934393a4512ee 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


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/84a1f0d5/attachment.html>


More information about the yt-svn mailing list