Darcs should look in ~/.darcs/author not ~/.darcs/prefs/author
authorwking <wking@thialfi>
Tue, 22 Jun 2010 17:23:07 +0000 (13:23 -0400)
committerwking <wking@thialfi>
Tue, 22 Jun 2010 17:23:07 +0000 (13:23 -0400)
From:
  http://darcs.net/manual/node7.html#env:DARCS_EMAIL

libbe/storage/vcs/darcs.py

index f64a7f69afb96ce7774c416aa70d2d52b635d9cd..b0e570502ee166fe18ff90a5559fe483a8d71fa2 100644 (file)
@@ -116,11 +116,11 @@ class Darcs(base.VCS):
         if self.repo == None:
             return None
         for pref_file in ['author', 'email']:
-            for darcs_dir in [os.path.join(self.repo, '_darcs'),
+            for prefs_dir in [os.path.join(self.repo, '_darcs', 'prefs'),
                               os.path.expanduser(os.path.join('~', '.darcs'))]:
-                if darcs_dir == None:
+                if prefs_dir == None:
                     continue
-                pref_path = os.path.join(darcs_dir, 'prefs', pref_file)
+                pref_path = os.path.join(prefs_dir, pref_file)
                 if os.path.exists(pref_path):
                     return self._vcs_get_file_contents(pref_path).strip()
         for env_variable in ['DARCS_EMAIL', 'EMAIL']: