]> git.madduck.net Git - code/myrepos.git/commitdiff

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Add a push subcommand, which pushes committed changes for DCVS, and does nothing...
authorJoey Hess <joey@kodama.kitenet.net>
Tue, 22 Jul 2008 19:21:48 +0000 (15:21 -0400)
committerJoey Hess <joey@kodama.kitenet.net>
Tue, 22 Jul 2008 19:21:48 +0000 (15:21 -0400)
debian/changelog
lib/git-fake-bare
lib/git-svn
mr
mrconfig.complex

index e84cbc8b5beb787473ad7188d926ad203975cbef..512521aafa0a616705906b8034afe8f2c0763b77 100644 (file)
@@ -1,3 +1,10 @@
+mr (0.33) UNRELEASED; urgency=low
+
+  * Add a push subcommand, which pushes committed changes for DCVS, and 
+    does nothing for svn/cvs. Closes: #491865
+
+ -- Joey Hess <joeyh@debian.org>  Tue, 22 Jul 2008 15:19:54 -0400
+
 mr (0.32) unstable; urgency=low
 
   * Include the right (v2) version of GPL in the source.
index 899c77bb6af478b10348d004d41c70171914cf34..b5af791c34efc570005e0b960c6979ff64436ee9 100644 (file)
@@ -59,6 +59,9 @@ git_fake_bare_commit =
        GIT_DIR="$MR_REPO" git commit -a "$@"
        GIT_DIR="$MR_REPO" git push --all
 
+git_fake_bare_push =
+       GIT_DIR="$MR_REPO" git push --all
+
 git_fake_bare_record = 
        cd "$(git_get_worktree)"
        GIT_DIR="$MR_REPO" git commit -a "$@"
index 3fe18a25d94d18b1a36895b52defe7c14a1f831c..7e42b8820e986734ce760f5f79dce5895dd27873 100644 (file)
@@ -11,6 +11,7 @@
 git_svn_update = git svn fetch
 git_svn_status = git status "$@" || true
 git_svn_commit = git svn dcommit
+git_svn_push = git svn dcommit
 git_svn_record = git commit -a "$@"
 git_svn_diff = git diff "$@"
 git_svn_log = git svn log "$@"
diff --git a/mr b/mr
index 7eaadddd21e3fd223ed67d5ad0da1fee053e158c..e76887ee60eb5bc9a1a30433d9a87497cd9c4136 100755 (executable)
--- a/mr
+++ b/mr
@@ -81,6 +81,11 @@ remote repository. Only supported for distributed revision control systems.
 
 The optional -m parameter allows specifying a commit message.
 
+=item push
+
+Pushes committed local changes to the remote repository. A no-op for
+centralized revision control systems.
+
 =item diff
 
 Show a diff of uncommitted changes.
@@ -1288,6 +1293,13 @@ bzr_record = bzr commit "$@"
 hg_record  = hg commit -m "$@"
 darcs_record = darcs record -a -m "$@"
 
+svn_push = :
+git_push = git push "$@"
+bzr_push = bzr push "$@"
+cvs_push = :
+hg_push = hg push "$@"
+darcs_push = darcs push -a
+
 svn_diff = svn diff "$@"
 git_diff = git diff "$@"
 bzr_diff = bzr diff "$@"
index 8eef5eb54c0c1dfda73627be33402162e36cb485..47cf9791067b354eb989984af08e4af6dafed3b4 100644 (file)
@@ -9,10 +9,10 @@ include = cat /usr/share/mr/* 2>/dev/null || true
 # Teach mr to run a few git and svn specific commands.
 svn_cleanup = svn cleanup "$@"
 git_gc = git gc "$@"
-git_push = git push "$@"
-svn_push = :
 git_tag = git tag -l
 svn_tag = svn ls "$(LC_ALL=C svn info . | grep -i ^URL: | cut -d ' ' -f 2 | sed -e 's/trunk/tags/')"
+# I prefer to git-svn rebase to fetch
+git_svn_update = git svn rebase
 # This hack is here because git pull stupidly outputs tag info to stderr.
 # Shut it up but let real errors through, for use in cron.
 quietupdate = mr -s -n update 3>&1 1>/dev/null 2>&3 | egrep -v '(storing tag|tag: )' || true