all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: Automatically commenting changes
Date: Thu, 27 Jan 2011 06:54:23 +1100	[thread overview]
Message-ID: <87bp33qw40.fsf@rapttech.com.au> (raw)
In-Reply-To: mailman.2.1296057926.30134.help-gnu-emacs@gnu.org

Gary <help-gnu-emacs@garydjones.name> writes:

> Richard Riley wrote:
>> Gary writes:
>>> Stefan Monnier wrote:
>>>
>>>>> An editor I used long long ago had the ability to tag lines you
>>>> changed
>>>>> with your name (or some other customisable character sequence).
>
>>>> I think the way to attack such a problem nowadays is to keep your
>>>> code in a version control system (VCS), which then keeps track of
>>>> all that info for you.
>>>
>>> I do. But before I commit, or rather in the process of commiting, when
>>> there is the original file I branched from to consider, plus my
>> changes,
>>> possibly plus changes from others who have commited since I branched,
>>> things can get confusing.
>
>> git-blame
>> magit
>
> Actually I use svn. But still.
>
> It doesn't help.
>
> Sadly I am the only one using vcs (don't even get me *started* on that),
> otherwise people just send cra^H^Hode around by email and one person
> merges them into an "approved" version, similarly distributed via
> email. I then maintain my "private" subversion repo, with the merges and
> the changes that I make. Which means that 'svn blame' says I made all of
> the changes...
>
> (Okay, so kill me, I used the term "others who have commited" and it
> wasn't 100% true.)
>
Hi Gary,

If you are the one that commits everything to your private repository,
then the information on who did what is lost. As you point out, svn
blame/praise won't be able to tell you anything useful. At the same
time, since the information has essentially been lost, neither could any
sort of emacs mode help. 

However, there may be a solution, but it would involve changing your
workflow. 

I've had great success with using the git svn method. Essentially, you
can setup a git repository which will allow you to keep your own local
git based copy of the main/central svn repository. You get full
bi-directional interfaces i.e. you can pull down changes and push back
up changes (provided your allowed to write to the svn repository). This
will maintain commit information and has the added advantage, through
git support for rebasing, of keeping commits in a sane order. Git also
has support for handling patches povided via email and other very nice
features. 

While git can seem a bit daunting at first and has a few new conceptual
shifts, I find the benefits to be worth it - to some extent, it is
similar to the move from cvs to svn or from rcs to cvs - some learning
is required, but the final benefits are worth it. 

I use the blame/praise facilities using a git svn repository on a dialy
basis and have been doing so for the last 12 months. It works extremely
well. Merging and branching are much easier and git seems to be able to
handle more stuf that I previously had to handle manually with svn. At
first, I found git somewhat daunting, but soon found out that 80% of
what I needed to do was easy and straight-forward. The trick seems to be
to just focus on the functioanlity you need and don't try to digest the
full scope of options and features available in git all at once. 

Tim

-- 
tcross (at) rapttech dot com dot au


  parent reply	other threads:[~2011-01-26 19:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.1.1295948439.29299.help-gnu-emacs@gnu.org>
2011-01-25 10:09 ` Automatically commenting changes Pascal J. Bourguignon
2011-01-26  3:32 ` Stefan Monnier
2011-01-26 13:21   ` Gary
     [not found]   ` <mailman.0.1296048116.12534.help-gnu-emacs@gnu.org>
2011-01-26 13:57     ` Richard Riley
2011-01-26 16:05       ` Gary
     [not found]       ` <mailman.2.1296057926.30134.help-gnu-emacs@gnu.org>
2011-01-26 19:54         ` Tim X [this message]
2011-01-27  2:16         ` Stefan Monnier
2011-01-26 15:55     ` Stefan Monnier
2011-01-25  9:40 Gary
2011-01-25  9:46 ` Deniz Dogan
2011-01-25 10:48   ` Gary
2011-01-25 18:38     ` Thierry Volpiatto

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bp33qw40.fsf@rapttech.com.au \
    --to=timx@nospam.dev.null \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.