ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Mercurial not writing files

April 19, 2010 1:13pm

Subscribe [2]
  • #1 / Apr 19, 2010 1:13pm

    nelson.wells

    62 posts

    I’m attempting to do development on a home Linux server, and I can’t get a simple use-case to work.  Let me explain the scenario.

    I have two directories, one in /var/www/codeigniter which is a clone of the BitBucket repo.  The other directory, ~/wip/codeigniter is a clone of the repo at /var/www/codeigniter.  What I want to do is simple, edit the welcome_message.php file in the working directory and push it to /var/www/codeigniter repo, but I’m having troubles doing it.

    After I edit the file in the wip directory, I commit it.  Then, I do hg push and it pushes it to the correct directory (/var/www/codeigniter).  It even indicates that there is one change in one file… all of that seems to be correct.  However, when I actually LOOK at the welcome_message.php file in /var/www/codeigniter, it hasn’t changed.  I look at the change log in that repo, and it indicates that is HAS changed, and yet the reality is that it hasnt.

    I thought originally it might be a permissions problem, so I changed /var/www/codeigniter and all of its sub-directories to 777 to see if that would at least get my changes to take effect, and it did not work. 

    I’m new to Merc and my Linux-fu hasn’t been used in a while, so I’m kind of stumped as to whats going on.  Anyone have any ideas?

  • #2 / Apr 19, 2010 1:42pm

    Jamie Rumbelow

    546 posts

    Are you remembering to run “hg update” on your /var/www/codeigniter repo? That could be it.

    Jamie

  • #3 / Apr 19, 2010 2:53pm

    nelson.wells

    62 posts

    That was the problem, I haven’t even seen that I had to do that anywhere.  Looks like I have some more reading to do.  Thanks.

  • #4 / Apr 20, 2010 11:22am

    nelson.wells

    62 posts

    I’m reading http://hginit.com and I just finished the second part (working with a team).  Is there any reason to update the working directory on the central repo, or can I leave it where it is?  It seems like I’m always going to be pulling / cloning the most recent changeset even if it isn’t the current working directory.  Or am I wrong about that?

  • #5 / Apr 23, 2010 4:50pm

    Derek Jones

    7561 posts

    Unless someone is actively working on the centralized repository, i.e. using it for a working directory, then it never needs to update, etc.

    Edited to add: also if you have not yet discovered the Fetch extension, I highly recommend it.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases