Attachment 'force_filelog_entry_on_no_changes.diff'

Download

   1 diff -r c68f84448012 mercurial/localrepo.py
   2 --- a/mercurial/localrepo.py	Fri Jul 11 18:46:02 2008 -0500
   3 +++ b/mercurial/localrepo.py	Sun Jul 20 01:41:47 2008 +0200
   4 @@ -101,6 +101,7 @@
   5          self.filterpats = {}
   6          self._datafilters = {}
   7          self._transref = self._lockref = self._wlockref = None
   8 +        self._forcedchanges = False
   9  
  10      def __getattr__(self, name):
  11          if name == 'changelog':
  12 @@ -689,6 +690,7 @@
  13          fl = self.file(fn)
  14          fp1 = manifest1.get(fn, nullid)
  15          fp2 = manifest2.get(fn, nullid)
  16 +        force = self._forcedchanges
  17  
  18          meta = {}
  19          cp = fctx.renamed()
  20 @@ -737,7 +739,7 @@
  21                  fp2 = nullid
  22  
  23          # is the file unmodified from the parent? report existing entry
  24 -        if fp2 == nullid and not fl.cmp(fp1, t) and not meta:
  25 +        if fp2 == nullid and not fl.cmp(fp1, t) and not meta and not force:
  26              return fp1
  27  
  28          changelist.append(fn)

Attached Files

To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.
  • [get | view] (2009-07-18 20:51:12, 0.9 KB) [[attachment:force_filelog_entry_on_no_changes.diff]]
  • [get | view] (2009-07-18 21:53:23, 2.9 KB) [[attachment:revlog_metadata_write.diff]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.