From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?B?w4Z2YXIgQXJuZmrDtnLDsCBCamFybWFzb24=?= Newsgroups: gmane.emacs.devel Subject: Re: vc-pull/vc-push support Date: Tue, 25 May 2010 09:45:17 +0000 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1274781414 19455 80.91.229.12 (25 May 2010 09:56:54 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 25 May 2010 09:56:54 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dan Nicolaescu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 25 11:56:51 2010 connect(): No such file or directory Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OGqsV-00078t-EJ for ged-emacs-devel@m.gmane.org; Tue, 25 May 2010 11:56:51 +0200 Original-Received: from localhost ([127.0.0.1]:51585 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGqsU-0002Uk-F0 for ged-emacs-devel@m.gmane.org; Tue, 25 May 2010 05:56:50 -0400 Original-Received: from [140.186.70.92] (port=44290 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGqhP-000660-Cm for emacs-devel@gnu.org; Tue, 25 May 2010 05:45:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OGqhO-0003WS-A3 for emacs-devel@gnu.org; Tue, 25 May 2010 05:45:23 -0400 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:41928) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGqhL-0003Vq-FS; Tue, 25 May 2010 05:45:19 -0400 Original-Received: by iwn39 with SMTP id 39so4538495iwn.0 for ; Tue, 25 May 2010 02:45:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=JOKEIX1drLsJWGBgVyjVSsKg9ss6ZEDcNo7ORiCG+HU=; b=xBEeKPBIxhUPTb3tSBmW+OEwSzrOCjAk0mLCcPu+DUu2zQOcRAgK9O9eC0w6cgU+nx GY9AdHsRfnpNCWukRdJ+y0QUbKqQCNBWrU9gvGWI99E2VtTmy5JE5r0R3DlYHGDBgN4T Bzl0prZxVgHMpij7xtI6csJQRooGHsaw5DAAE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=cnCwzJ/0cE6/SysgnL9MWSaSZWvSULkEY0nv0L+uP5q41C86PnubW7RONrmbrJJLxc l+W9cIPdNymZYd6k9m0J7XRo0zXL3NrVCMsTiYJ/Om5pXCG1wB7Kv5Es3c9MbzFCety+ CEojQssTlpOxKDIa4NENi0Hyn/mEN4zPCG/LY= Original-Received: by 10.231.157.200 with SMTP id c8mr7162885ibx.53.1274780717927; Tue, 25 May 2010 02:45:17 -0700 (PDT) Original-Received: by 10.231.171.145 with HTTP; Tue, 25 May 2010 02:45:17 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:125235 Archived-At: On Tue, May 25, 2010 at 07:06, Dan Nicolaescu wrote: > This has been sitting on my disk for quite a while, and did not see much progress :-( > vc-pull/vc-push without any options work for bzr, but that's about it. > Maybe someone would find this useful and want to help finish the implementation... These are some hacky enhancements I used to pull/push with Git + vc. I've now removed them from my ~/.emacs since I use magit. But perhaps they'll be nice for reference. They allow you to push with C-u C-x v p, and pull with C-x v p. ;; This could be made portable but I'm not interested in that at the ;; moment so it's git-only. (defun vc-push-or-pull () "`vc-push' if given an argument, otherwise `vc-pull'" (interactive) (if current-prefix-arg (vc-push) (vc-pull))) (defun vc-push () "Run git-push on the current repository, does a dry-run unless given a prefix arg." (interactive) (shell-command "git push")) (defun vc-pull () "Run git-pull on the current repository." (interactive) (shell-command "git pull")) ;; vc.el - add commands to push and pull with git (progn (define-key vc-prefix-map "p" 'vc-push-or-pull))