How do I push only selected files from the changed list?

Giorgos Keramidas keramida at ceid.upatras.gr
Mon Apr 14 14:56:04 UTC 2008


On Mon, 14 Apr 2008 16:01:52 +0530, Tavitayya Varanasi <Tavitayya.Varanasi at Sun.COM> wrote:
> Hi,
> I make changes to a list files for testing.  But i need to push only
> few of then to repository.  How do I push only selected files from the
> changed list?

If you have *committed* the changes to the local workspace, then you can
only push full changesets.

If, on the other hand, you have just modified a few files locally, but
you haven't committed them to your local workspace yet, you can use:

    hg commit file1 file2 file3 file4

This will create a new changeset with _only_ the files you referred to.

Then you can push this full changeset to the parent workspace, and Hg
will DTRT.




More information about the Mercurial mailing list