Fixed Eric Kow's _darcs/prefs/author bug.
authorW. Trevor King <wking@drexel.edu>
Wed, 19 May 2010 11:17:36 +0000 (07:17 -0400)
committerW. Trevor King <wking@drexel.edu>
Wed, 19 May 2010 11:17:36 +0000 (07:17 -0400)
.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/5920ef40-ce56-44e0-9e2d-e9b888ab2880/comments/1b21dabc-a90c-4687-bea0-7e9e69956e23/body [new file with mode: 0644]
.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/5920ef40-ce56-44e0-9e2d-e9b888ab2880/comments/1b21dabc-a90c-4687-bea0-7e9e69956e23/values [new file with mode: 0644]
.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/5920ef40-ce56-44e0-9e2d-e9b888ab2880/values
libbe/storage/vcs/darcs.py

diff --git a/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/5920ef40-ce56-44e0-9e2d-e9b888ab2880/comments/1b21dabc-a90c-4687-bea0-7e9e69956e23/body b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/5920ef40-ce56-44e0-9e2d-e9b888ab2880/comments/1b21dabc-a90c-4687-bea0-7e9e69956e23/body
new file mode 100644 (file)
index 0000000..7485ebd
--- /dev/null
@@ -0,0 +1,3 @@
+> libbe.mapfile.IllegalValue: Illegal value "Foo Bar <foo@example.com>\n"
+
+The trailing endline was the problem.  Fixed now.
diff --git a/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/5920ef40-ce56-44e0-9e2d-e9b888ab2880/comments/1b21dabc-a90c-4687-bea0-7e9e69956e23/values b/.be/bea86499-824e-4e77-b085-2d581fa9ccab/bugs/5920ef40-ce56-44e0-9e2d-e9b888ab2880/comments/1b21dabc-a90c-4687-bea0-7e9e69956e23/values
new file mode 100644 (file)
index 0000000..6275e96
--- /dev/null
@@ -0,0 +1,11 @@
+Author: W. Trevor King <wking@drexel.edu>
+
+
+Content-type: text/plain
+
+
+Date: Wed, 19 May 2010 11:16:23 +0000
+
+
+In-reply-to: 285006ba-16fc-4d09-86f1-893ff515e487
+
index 0638e7851adf5cafeceffe9844257957d01f1b58..de23989f37ef90c02d993ddf258f911eb6aab989 100644 (file)
@@ -7,7 +7,7 @@ reporter: Eric Kow <eric.kow@gmail.com>
 severity: minor
 
 
-status: open
+status: fixed
 
 
 summary: Fancy _darcs/prefs/author contents confuse be
index b92977a168247c1f51ffc343b94990bef251fd45..0f23278ae507eea1f4a6e366f1a4a80519d7c02c 100644 (file)
@@ -120,7 +120,7 @@ class Darcs(base.VCS):
             for pref_file in ['author', 'email']:
                 pref_path = os.path.join(darcs_dir, 'prefs', pref_file)
                 if os.path.exists(pref_path):
-                    return self._vcs_get_file_contents(pref_path)
+                    return self._vcs_get_file_contents(pref_path).strip()
         for env_variable in ['DARCS_EMAIL', 'EMAIL']:
             if env_variable in os.environ:
                 return os.environ[env_variable]