[PATCH 0 of 1 rfc] Update -C on git and svn subrepos

Augie Fackler durin42 at gmail.com
Fri Jan 7 08:41:49 CST 2011


On Jan 7, 2011, at 8:34 AM, Erik Zielke wrote:
> 
> On 07-01-2011 15:16, Martin Geisler wrote:
>> Erik Zielke<ez at aragost.com>  writes:
>> 
>>> This patch tries to make Subversion and Git subrepositories behave in
>>> a way more similar to Mercurial subrepositories, when the main
>>> repository is updated with update --clean.
>>> 
>>> So it try to call svn and git commands to get a similar result, I do
>>> however think that there might be better commands to call. E.g.
>>> because the git one is a little different.
>> Please write what git command you are talking about so that we don't
>> have to dig it out ourselves -- as far as I can see we're talking about
>> 
>>   git --reset hard HEAD
>> 
>> here? And for Subversion you use
>> 
>>   svn revert --recursive
>> 
>> How are they different from what 'hg update -C' does -- something about
>> whether they delete untracked files?
>> 
> Yep, its those I am not sure whether is right, especially the git thing.

I think the git command you really want is 'git checkout HEAD .' for undoing all changes to currently-checked-out files (assuming nothing is staged in the index.)

> _______________________________________________
> Mercurial-devel mailing list
> Mercurial-devel at selenic.com
> http://selenic.com/mailman/listinfo/mercurial-devel




More information about the Mercurial-devel mailing list