Problem using subrepos
lafou
eric.m.lafrance at ca.abb.com
Tue May 31 15:56:49 UTC 2011
I am trying to use subrepos to manage my projects, but I observed some
strange things, and I need some help to sort them out. I ran a few seaches,
but couldn't find anything related to my problem (or at least I don't think
they were). I am running Mercurial 1.8.3 under Windows XP SP3 (I observed
the same behavior with version 1.8.0).
On my local disk, I have 3 repositories:
* lib --> A library I want to use in different projects
* proj --> A project that will use "lib" as a subrepo
* projlocal --> A clone of "proj"
I cloned "lib" into "proj", and it worked fine (also created the .hgsub file
with the subrepo information). Then I cloned "proj" into "projlocal", made a
modification to a file in "lib", then committed/pushed my changes, which
worked fine too. I also went into "lib" and ran "hg update" to make sure the
changes were available.
However, if I go in the "proj" repository and try to run "hg update", the
first time it fails with the message "abort: default path for subrepository
lib not found". If I run the update a second time, the message changes to
"abort: unknown revision '132c97c71be87d5407a8c4ad606c8e58b4d86d0a'!"
If I run "hg pull -u" in the subrepo first, then run "hg update" in "proj",
I don't get those error messages. However, my .hgsubstate file is tagged as
being modified after I have performed those 2 commands, which I find weird.
I have attached the batch file I use to perform those actions. I'd like to
know what I'm doing wrong here. Thanks.
http://mercurial.808500.n3.nabble.com/file/n3006641/testsubrepo.bat
testsubrepo.bat
-----
"Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live."
--
View this message in context: http://mercurial.808500.n3.nabble.com/Problem-using-subrepos-tp3006641p3006641.html
Sent from the General mailing list archive at Nabble.com.
More information about the Mercurial
mailing list