proposed patch for svn-inject
Hi, a proposed patch to make svn-inject automatically set svn
properties if there's a checked-out dir (except when -c 0 is
specified).
--- /tmp/svn-inject 2008-02-28 09:44:00.000000000 -0200
+++ /usr/bin/svn-inject 2008-02-28 09:44:31.000000000 -0200
@@ -406,6 +406,12 @@
chdir $trunkdir if($trunkdir);
+if($trunkdir) {
+ print "Setting repository properties.\n";
+ foreach(qw(trunkUrl tagsUrl upsCurrentUrl upsTagUrl)) {
+ withecho "svn", "propset", "svn-bp:$_", $SDCommon::c{$_}, "debian";
+ }
+}
SDCommon::writeCfg ".svn/deb-layout" if($opt_checkout>0);
print "Done!\n";
print ("Your working directory is $trunkdir - have fun!\n") if($trunkdir);
--
Martín Ferrari
Reply to: