chiark / gitweb /
wip changes for remote push - implement i_localname_*
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 9 Oct 2013 06:31:34 +0000 (07:31 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 9 Oct 2013 06:31:39 +0000 (07:31 +0100)
TODO
dgit

diff --git a/TODO b/TODO
index f61fa50..64eace4 100644 (file)
--- a/TODO
+++ b/TODO
@@ -1,4 +1,3 @@
-implement i_localname_*
 implement i_want_*
 
 --gpg= etc. @gpg should be in manual
diff --git a/dgit b/dgit
index eb6f01d..83bed54 100755 (executable)
--- a/dgit
+++ b/dgit
@@ -1436,6 +1436,17 @@ sub i_resp_want ($) {
     print RI "end-files\n" or die $!;
 }
 
+our ($i_clogp, $i_version, $i_tag, $i_dscfn);
+
+sub i_localname_parsed_changelog { return "remote-changelog.822"; }
+sub i_localname_changes { return "remote.changes"; }
+sub i_localname_dsc {
+    ($i_clogp, $i_version, $i_tag, $i_dscfn) =
+       push_parse_changelog 'remote-changelog.822';
+    die if $i_dscfn =~ m#/|^\W#;
+    return $dscfn;
+}
+
 #---------- building etc. ----------
 
 our $version;