auto update with a central repo

Peter Bourgon peterbourgon at gmail.com
Sun Sep 18 18:35:51 UTC 2011


What does "hg log" say? What about "hg status"?

On Sun, Sep 18, 2011 at 7:00 PM, cfaust-dougot <cfaust at doyougot.com> wrote:
>>> You probably just need to run "hg update" on the server.
>
> From what I've read, that is what "changegroup = hg update >&2" does (so it does the update automaticlly). Its not just a matter of running update though, if I don't include "changegroup = hg update >&2" in the hgrc file then nothing gets update. If I think do "hg update" it does say its updated 1 file and when I look at the file I see the same exact thing. The file I updated does have a new timestamp but the changes are simply not in the file. Its still in its org state.
>
> So it seems like "hg update" and "changegroup = hg update >&2" both work, when I do "hg log" I see all the pushes I do. I just never see any change in the actual file.
>
>
>
> ________________________________
>
> From: peterbourgon at gmail.com on behalf of Peter Bourgon
> Sent: Sun 9/18/2011 12:19 PM
> To: cfaust-dougot
> Cc: mercurial at selenic.com
> Subject: Re: auto update with a central repo
>
>
>
> You probably just need to run "hg update" on the server.
>
> On Sun, Sep 18, 2011 at 2:25 PM, cfaust-dougot <cfaust at doyougot.com> wrote:
>> Hi,
>>
>> I'm trying Mercurial for the first time, there appears to be a lot of docs
>> and many ways of using it, so I'm not sure if I'm doing something wrong or I
>> have something setup wrong.
>>
>> To start, I simply want to be able to have multiple people do development on
>> the same files and upload them to the server.
>>
>> I started by creating a repo on my development server and adding the files
>> that I wanted, I also added "changegroup = hg update >&2" to the hgrc file.
>>
>> I then setup the index.cgi, apache etc. Everything appears to be talking to
>> everything else without error.
>>
>> To make things a little eaiser I then used one of the GUI clients
>> (hgExplorer). Things seem to be working, I pointed to the repo on the dev
>> server (via http) and got all the working files.
>>
>> If I edit any file it then appears and asked me to save/commit. After the
>> save/commit I "push" to the remote repo. If I look at the file I just
>> changed on the repo, it does in fact have a new timestamp (like it was just
>> updated), but the change I made before I pushed it up is not in the file.
>> The file is exactly the way it was before the push (just with a new
>> date/time).
>>
>> Am I doing something wrong or is there a flaw in my logic?
>>
>> TIA!
>> _______________________________________________
>> Mercurial mailing list
>> Mercurial at selenic.com
>> http://selenic.com/mailman/listinfo/mercurial
>>
>>
>
>
>



More information about the Mercurial mailing list