[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mercurial
Subject:    Re: How to find who removed a line ?
From:       Patrick_Mézard <patrick () mezard ! eu>
Date:       2012-04-27 14:22:30
Message-ID: 4F9AABA6.4040406 () mezard ! eu
[Download RAW message or body]

Le 27/04/12 16:09, praveen_m86 a =E9crit :
> I have a scenario where a set of codes got removed from the default trunk.
> How do i identify the changeset that removed the line ? Though I identifi=
ed
> the changeset that removed the line, it was a painful process. The reason
> was hg log of the file would actually show me the list of all the changes=
ets
> in which the fie was committed and the file never got committed in the
> default trunk, it was only delivered to the main trunk. In this case I had
> different branches which didn't deliver their modifications to the same f=
ile
> to the main trunk. So a hg log file command that displays changesets with
> respect to a branch, showing changesets of other branch whose content are
> delivered to the default branch would be ideal.
> =

> =

> Had it been a modified line hg annotate would have solved the problem. But
> this was a removed line.
> =

> Is there a command that displays log between 2 changesets with diff betwe=
en
> then... (Not the whole diff, but changeset wise diff between them)
> =

> hg log 10:15 (diff between 10-11,11-12,12-13,13-14,14,15)

Try with:

  $ hg grep -a "pattern to match your line" yourfile

--
Patrick M=E9zard
_______________________________________________
Mercurial mailing list
Mercurial@selenic.com
http://selenic.com/mailman/listinfo/mercurial
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic