Author: adam-guest
Date: 2008-02-26 21:19:15 +0000 (Tue, 26 Feb 2008)
New Revision: 1061

Modified:
   trunk/debian/changelog
   trunk/scripts/debcheckout.pl
Log:
  + In auth mode, set push_location for bzr branches (Closes: #453447)

Modified: trunk/debian/changelog
===================================================================
--- trunk/debian/changelog      2008-02-26 19:21:07 UTC (rev 1060)
+++ trunk/debian/changelog      2008-02-26 21:19:15 UTC (rev 1061)
@@ -17,6 +17,7 @@
       (Closes: #465849)
     + Fix a warning about uninitialised values when a module name is not
       supplied for a cvs repository
+    + In auth mode, set push_location for bzr branches (Closes: #453447)
   * uscan:
     + Add support for repacking .zip archives, based on a patch
       from Antonio Terceiro (Closes: #456587)

Modified: trunk/scripts/debcheckout.pl
===================================================================
--- trunk/scripts/debcheckout.pl        2008-02-26 19:21:07 UTC (rev 1060)
+++ trunk/scripts/debcheckout.pl        2008-02-26 21:19:15 UTC (rev 1061)
@@ -267,6 +267,14 @@
     print STDERR
       "checkout failed (the command shown above returned non-zero exit 
code)\n";
   }
+  if ($repo_type eq 'bzr' and $auth) {
+    if (open B, '>>', "$destdir/.bzr/branch/branch.conf") {
+      print B "\npush_location = $repo_url";
+      close B;
+    } else {
+      print STDERR "failed to open branch.conf to add push_location: [EMAIL 
PROTECTED]";
+    }
+  }
   exit($rc);
 }
 



-- 
To unsubscribe, send mail to [EMAIL PROTECTED]

Reply via email to