summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Guenther <agx@sigxcpu.org>2006-11-08 10:44:46 +0100
committerGuido Guenther <agx@bogon.sigxcpu.org>2006-11-08 10:44:46 +0100
commitc48e88ca55a8ec2c90f4846a3081c1cc136aa826 (patch)
tree000b93e5cfc8f22ffd5c74b57c5d6a644577c446
parent7aa6ff42c4b0cebff45ee15e46765914edaf817f (diff)
downloadgit-buildpackage-c48e88ca55a8ec2c90f4846a3081c1cc136aa826.tar.gz
git-buildpackage-c48e88ca55a8ec2c90f4846a3081c1cc136aa826.tar.bz2
git-buildpackage-c48e88ca55a8ec2c90f4846a3081c1cc136aa826.zip
git-import-orig: implement "--no-merge"debian/0.2.8
-rw-r--r--debian/changelog3
-rwxr-xr-xgit-import-orig15
2 files changed, 11 insertions, 7 deletions
diff --git a/debian/changelog b/debian/changelog
index 39995845..944a5bad 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,8 +5,9 @@ git-buildpackage (0.2.8) git-buildpackage; urgency=low
* minor cosmetic cleanups all over the place
* README: no need to mention git-load-dirs anymore, it's in unstable now.
Thanks John.
+ * git-import-orig: implement "--no-merge"
- -- Guido Guenther <agx@sigxcpu.org> Fri, 3 Nov 2006 17:21:12 +0100
+ -- Guido Guenther <agx@sigxcpu.org> Wed, 8 Nov 2006 10:36:55 +0100
git-buildpackage (0.2.7) git-buildpackage; urgency=low
diff --git a/git-import-orig b/git-import-orig
index c085e08b..9fae9131 100755
--- a/git-import-orig
+++ b/git-import-orig
@@ -60,6 +60,8 @@ def main():
help="name of the upstream branch, default is 'upstream'")
parser.add_option("--debian-branch", dest='debian', default='master',
help="name of the branch the debian package is being developed on, default is 'master'")
+ parser.add_option("--no-merge", dest='merge', action="store_false", default=True,
+ help="after import dont do any merging to another branch")
(options, args) = parser.parse_args()
gitCheckoutUpstream=GitCheckoutBranch(options.upstream)
@@ -110,12 +112,13 @@ def main():
gitShowBranch()
GitLoadDirs()(origdir)
GitTag()(sanitize_version(version))
-
- print "Merging to master..."
- gitCheckoutMaster()
- gitShowBranch()
- gitPullUpstream()
- Dch("%s-1" % (version,), 'New Upstream Version')()
+
+ if options.merge:
+ print "Merging to master..."
+ gitCheckoutMaster()
+ gitShowBranch()
+ gitPullUpstream()
+ Dch("%s-1" % (version,), 'New Upstream Version')()
except CommandExecFailed:
print >>sys.stderr, "Import of %s failed" % (tgz,)
cleanupTmpTree(tmpdir)