Note that there are some explanatory texts on larger screens.

plurals
  1. POGet all changed files for a given directory in a branch
    primarykey
    data
    text
    <p>Our project switched over from SVN to Mercurial recently. In SVN, to version our css/js files we get the latest changed revision from the directory that they reside in and use it as a prefix for the packed filenames.</p> <p>We want to use the same method in Mercurial. Unfortunately, it seems easier said than done, although it may be caused by our branching method.</p> <p>In a nutshell, we have a main branch (trunk). Every couple of weeks we branch from trunk to create a production beta, which will eventually be merged into our live branch.</p> <p>Now at the moment, we're essentially using</p> <pre><code>hg log -b live some_folder/js hg log -b live some_folder/css </code></pre> <p>to get the changeset that most recently changed files in those directories.</p> <p>The problem that we're running into is that our merge changesets aren't being detected using this method. So if we merge in a changeset that modifies a file in some_folder/css, hg doesn't count it as having changed, since the file wasn't actually modified in the merge changeset, but in one of the changesets that is being merged.</p> <p>We've also tried revsets to try to parse the logs, but it seems to have the same problem. The only way to get hg log to list those files as changed seems to be to use the --stat option, but</p> <pre><code>hg log -b live --stat some_folder/css </code></pre> <p>doesn't show the changesets either.</p> <p>I'm at the point where I'm considering just using</p> <pre><code>hg log -b live --stat </code></pre> <p>to get the log for the entire branch, then parsing it to find the changeset that most recently modified a file the directory, but I'd prefer not to since it seems like it'll get slower and slower as the branch gets bigger.</p> <p>Any ideas on a better way to solve my problem?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload