9front - general discussion about 9front
 help / color / mirror / Atom feed
From: "Frank D. Engel, Jr." <fde101@fjrhome.net>
To: 9front@9front.org
Subject: Re: [9front] 9front, git and mercurial.
Date: Fri, 20 May 2022 05:15:26 -0400	[thread overview]
Message-ID: <cf2e83b9-587b-427c-a8e0-6f9689ef940c@fjrhome.net> (raw)
In-Reply-To: <5654992160E4622D77AFACC15F3311BE@eigenstate.org>

I first tried removing /sys/lib/git/common.rc and running "hg update" 
again (I believe I had already run the command last time to bind 
/dist/plan9front to / but in any case I did so first this time).

The hg update command no longer complained about an untracked file when 
run from /sys/src.  It did not make any changes, however, whether I ran 
it from /, /sys/src or /dist/plan9front.

Removing the file did break my git installation (which I had expected), 
but it did not result in the local install being replaced by the tracked 
one:


glenda@brains1% cd /sys/src
glenda@brains1% hg ident
c8bec6f5ee1e+ tip
glenda@brains1% rm /sys/lib/git/common.rc
glenda@brains1% hg up
0 files updated, 0 files merged, 0 files removed, 0 files unresolved
glenda@brains1% cd /
glenda@brains1% hg up
0 files updated, 0 files merged, 0 files removed, 0 files unresolved


glenda@brains1% cat /bin/sysupdate
#!/bin/rc
rfork en
source=https://code.9front.org/hg/plan9front
cd /
if(! test -d .hg)
     bind -ac /dist/plan9front /
while(! ~ $#* 0){
     switch($1){
     case -i
         hg incoming $source
     case *
         echo usage: sysupdate '[-i]' >[1=2]
         exit usage
     }
     shift
}
hg -v pull -u $source
glenda@brains1% git/pull
/sys/lib/git/common.rc: /bin/git/pull:3: .: can't open: 
'/sys/lib/git/common.rc' does not exist


Next I ran "hg status" and looked through the list of things to change - 
I noticed a number of things that were local but which were important to 
keep, and was concerned that "hg up -C" would remove them, so I backed 
up the ones I knew I needed to a subdirectory under /usr/glenda then ran 
"hg up -C" from /sys/src.

This made 142 updates, so I ran mk all followed by mk install to apply 
those changes.


Next I checked /bin/sysupdate and verified that it had finally been 
updated to the git version.

After validating that my local updates I was concerned about were in 
fact still there (they were not modified by hg up -C) I ran the new 
/bin/sysupdate.

This produced what appeared to me to be a warning and an error, plus a 
message that .hg could be removed (so I did).

I tried running sysupdate again and continue to receive the error:

glenda@brains1% /bin/sysupdate
end of line for hg: moving to git.
     fetching snapshot...
fs 281324: warning: process exceeds 100 file descriptors
     pulling with git...
/bin/git/pull: no remote to pull from
got git: you may remove /dist/plan9front/.hg
glenda@brains1% rm -rf /dist/plan9front/.hg
glenda@brains1% sysupdate
/bin/git/pull: no remote to pull from
glenda@brains1%





On 5/20/22 12:37 AM, ori@eigenstate.org wrote:
> Quoth Frank D. Engel, Jr. <fde101@fjrhome.net>:
>> If I cd /sys/src then hg update I get:
>>
>>
>> abort: untracked file in working directory differs from file in
>> requested revision: 'sys/lib/git/common.rc'
>>
>>
> ok -- the manually installed version of git
> is conflicting with the version that sysupdate
> wants to add.
>
> Do you have local changes?
>
> 	hg up -C
>
> will bring you to the expected revision,
> but will blow away local changes.
>
> you can also likely remove or clean up
> /sys/lib/git/common.rc
>
>


  reply	other threads:[~2022-05-20  9:18 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <89F3ABF218EE52FAE7605F9B07728487@eigenstate.org>
     [not found] ` <1275338a-65f0-61c2-8162-ba7c93fa2493@fjrhome.net>
     [not found]   ` <YoU7OpruuHGcQYUj@wopr>
     [not found]     ` <dbbd3656-69c9-b71b-2d08-07912ad5326d@fjrhome.net>
2022-05-18 19:48       ` Frank D. Engel, Jr.
2022-05-18 20:03         ` Frank D. Engel, Jr.
2022-05-19  1:51         ` ori
2022-05-19  8:20           ` Frank D. Engel, Jr.
2022-05-19 17:46             ` Kurt H Maier
2022-05-19 18:41               ` Frank D. Engel, Jr.
2022-05-20  1:33                 ` Jacob Moody
2022-05-20  2:25                   ` Frank D. Engel, Jr.
2022-05-20  4:37                     ` ori
2022-05-20  9:15                       ` Frank D. Engel, Jr. [this message]
2022-05-20 14:30                         ` ori
2022-05-20 15:00                           ` Frank D. Engel, Jr.
2022-05-20  1:02             ` Amavect
2022-05-20  2:35               ` Frank D. Engel, Jr.
2022-05-20  2:59                 ` Jacob Moody

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=cf2e83b9-587b-427c-a8e0-6f9689ef940c@fjrhome.net \
    --to=fde101@fjrhome.net \
    --cc=9front@9front.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).