|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Is it possible to pull changed files if the code sever hasn't commit/update it?Hi everyone.
Assuming the following condition:
I have a code server A, a compilatioin-test machine B. Then I modify some
files in server A. Just at this point, I run "hg pull" to get the modified
files in A, then fail. hg reports nothing updated.
Then here comes my question: how can I "sync" the server and the client,
assuming I am not allowed to run "hg commit/hg update"? is it possible to do
so?
Thank you very much for any answer or hit.
Best regards.
2009-10-31
Alex.Wang
_______________________________________________ Mercurial mailing list Mercurial@... http://selenic.com/mailman/listinfo/mercurial |
|
|
Re: Is it possible to pull changed files if the code server hasn't commit/update it?"Alex.Wang" <geforce8800@...> writes:
> Hi everyone. > Assuming the following condition: > > I have a code server A, a compilatioin-test machine B. Then I modify > some files in server A. Just at this point, I run "hg pull" to get the > modified files in A, then fail. hg reports nothing updated. > Then here comes my question: how can I "sync" the server and the > client, assuming I am not allowed to run "hg commit/hg update"? is it > possible to do so? You cannot. Mercurial only moves *history* (changesets) from one repository to another, and until you have made a commit, the changes are not part of the history. You'll have to use some other transport mechanism such as scp. -- Martin Geisler VIFF (Virtual Ideal Functionality Framework) brings easy and efficient SMPC (Secure Multiparty Computation) to Python. See: http://viff.dk/. _______________________________________________ Mercurial mailing list Mercurial@... http://selenic.com/mailman/listinfo/mercurial |
|
|
Re: Is it possible to pull changed files if the code server hasn't commit/update it?Since the changes have not been committed, you should be able to use "hg
diff" to generate a patch that can be transfered to the client and applied there and then the changes in the server A workspace can be dropped via an "hg revert -a" Paul Franz Martin Geisler wrote: > "Alex.Wang" <geforce8800@...> writes: > > >> Hi everyone. >> Assuming the following condition: >> >> I have a code server A, a compilatioin-test machine B. Then I modify >> some files in server A. Just at this point, I run "hg pull" to get the >> modified files in A, then fail. hg reports nothing updated. >> Then here comes my question: how can I "sync" the server and the >> client, assuming I am not allowed to run "hg commit/hg update"? is it >> possible to do so? >> > > You cannot. Mercurial only moves *history* (changesets) from one > repository to another, and until you have made a commit, the changes are > not part of the history. > > You'll have to use some other transport mechanism such as scp. > > > ------------------------------------------------------------------------ > > _______________________________________________ > Mercurial mailing list > Mercurial@... > http://selenic.com/mailman/listinfo/mercurial > Mercurial mailing list Mercurial@... http://selenic.com/mailman/listinfo/mercurial |
|
|
|
|
|
|
| Free embeddable forum powered by Nabble | Forum Help |