diff to tag includes .hgtags
Matt Mackall
mpm at selenic.com
Tue Jun 28 03:53:28 UTC 2005
On Tue, Jun 28, 2005 at 10:17:49AM +0800, Soh Tk-r28629 wrote:
> > -----Original Message-----
> > > I noticed the the .hgtags file is also versioned. So, when I try to
> > > generate patches on my changes by diff'ing again a tag, changes on
> > > .hgtags is also included in the patches, since the tagging
> > > changesets are placed after the tagged ones. How could I get rid of
> > > the changes on .hgtags file?
> >
> > hg diff -r TAG | filterdiff -x .hgtags
>
> You will need -p1 here:
>
> hg diff -r TAG | filterdiff -p1 -x .hgtags
>
> The issue is that this will add an additional dependency for hg. And
> installing patchutils isn't so straigtforward outside linux -
> there're errors that I chose to ignore the last time I installed it
> on my Solaris box.
>
> Is there any reason .hgtags is not in the .hg directory, and/or
> managed independently from user's project files, since it's just
> holding hg's internal transaction data?
Because that introduces many more corner cases than simply excluding
it from hg diff. How about we just add -x support to hg diff, which
deals with this nicely and orthogonally.
--
Mathematics is the supreme nostalgia of our time.
More information about the Mercurial
mailing list