Show incoming changes for specific file/dir

anatoly techtonik techtonik at gmail.com
Sun May 1 10:58:28 UTC 2011


On Sun, May 1, 2011 at 1:31 PM, Matt Mackall <mpm at selenic.com> wrote:
> On Sun, 2011-05-01 at 12:25 +0200, Tony Mechelynck wrote:
>> On 01/05/11 11:26, anatoly techtonik wrote:
>> > Hi,
>> >
>> > How can I see incoming changes for specific file/dir from remote repository?
>> > In svn I do:
>> >    svn log log -r HEAD:BASE -v
>> >
>> > Please CC.
>> > --
>> > anatoly t.
>> > _______________________________________________
>> > Mercurial mailing list
>> > Mercurial at selenic.com
>> > http://selenic.com/mailman/listinfo/mercurial
>> >
>>
>> AFAICT, you cannot limit the output of "hg incoming" to only one file;
>> but after doing
>>       hg --verbose incoming > incoming.log
>> which can be abbreviated to
>>       hg -v in > incoming.log
>>
>> you can examine the result (using the search function in any good text
>> editor) to find any incoming changesets for the file or directory in
>> question.
>>
>> Or instead of logging, on Unix-like systems you could pipe the output to
>> the "less" pager and search using its / and n commands.
>
> Another alternative is to use a bundle:
>
> hg in -q -b in.hg
> hg -R in.hg log somedirectory/

I do not understand the first command. It lists incoming changes for
`in.hg` branch in remote repository in `quiet` mode. It makes sense
only if -b is --bundle flag and it downloads all changesets. I'd say
that diminishes the whole purpose of `svn log log -r HEAD:BASE -v`
which is used as a _quick_ way to check for changes for files I am
currently working on in cases the whole sync might take a while.

BTW, I dumped whole incoming log into separate file and searched in
it. Worked for now. Thanks.
--
anatoly t.



More information about the Mercurial mailing list