QuestionId stringlengths 3 8 | QuestionTitle stringlengths 15 149 | QuestionScore int64 1 27.2k | QuestionCreatedUtc stringdate 2008-08-01 18:33:08 2025-06-16 04:59:48 | QuestionBodyHtml stringlengths 40 28.2k | QuestionViewCount int64 78 16.5M | QuestionOwnerUserId float64 4 25.2M ⌀ | QuestionLastActivityUtc stringdate 2008-09-08 19:26:01 2026-01-24 22:40:25 | AcceptedAnswerId int64 266 79.7M | AnswerScore int64 2 30.1k | AnswerCreatedUtc stringdate 2008-08-01 23:40:28 2025-06-16 05:23:39 | AnswerOwnerUserId float64 1 29.5M ⌀ | AnswerLastActivityUtc stringdate 2008-08-01 23:40:28 2026-01-23 17:46:09 | QuestionLink stringlengths 31 36 | AnswerLink stringlengths 31 36 | AnswerBodyHtml stringlengths 35 33k | AnswerBodyPreview stringlengths 35 400 | AllTagIdsCsv stringlengths 2 37 | AllTagNamesCsv stringlengths 2 106 | MergedQuestion stringlengths 74 28.4k | quality_filter stringclasses 10
values | unique_id int64 0 29k | tag_major_lang stringclasses 10
values | MergedQuestion_md stringlengths 60 28.1k | AnswerBodyHtml_md stringlengths 14 29.2k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
20410260 | Mercurial: Checkout Files for Revision | 6 | 2013-12-05 20:42:16 | <p>Is it possible to checkout all the files in a repository for a specific revision? Say for example that my repository is at revision 88. I don't want to revert or backout any of the changes up to revision 88, but just get a copy of them at revision 50.</p>
| 6,870 | 332,893 | 2023-03-20 08:39:14 | 20,412,253 | 13 | 2013-12-05 22:37:40 | 1,464,763 | 2013-12-05 22:37:40 | https://stackoverflow.com/q/20410260 | https://stackoverflow.com/a/20412253 | <p>To update your working directory to revision <code><rev></code>:</p>
<pre><code>hg update -r <rev>
</code></pre>
| <p>To update your working directory to revision <code><rev></code>:</p> <pre><code>hg update -r <rev> </code></pre> | 802, 41309, 130914 | mercurial, revisions, vcs-checkout | <h1>Mercurial: Checkout Files for Revision</h1>
<p>Is it possible to checkout all the files in a repository for a specific revision? Say for example that my repository is at revision 88. I don't want to revert or backout any of the changes up to revision 88, but just get a copy of them at revision 50.</p>
| q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,310 | mercurial | # Mercurial: Checkout Files for Revision
Is it possible to checkout all the files in a repository for a specific revision? Say for example that my repository is at revision 88. I don't want to revert or backout any of the changes up to revision 88, but just get a copy of them at revision 50. | To update your working directory to revision `<rev>`:
```
hg update -r <rev>
``` |
2177378 | mercurial .hgignore - won't ignore files | 6 | 2010-02-01 14:36:56 | <p>I'm trying to ignore a file in my project with .hgignore, and just can't figure it out. The file is located in app/views/patterns/_changes.erb (relative to the root of the project, where .hgignore is), and nothing I try seem to work:</p>
<pre><code>#.hgignore
syntax: glob
app/views/patterns/_changes.erb
*changes.er... | 5,891 | 187,907 | 2010-07-06 20:54:34 | 2,177,403 | 13 | 2010-02-01 14:39:46 | 172,387 | 2010-07-06 20:54:34 | https://stackoverflow.com/q/2177378 | https://stackoverflow.com/a/2177403 | <p>If you just put:</p>
<pre><code>_changes.erb
</code></pre>
<p>as an entry, that should work. It will ignore that file name, regardless of location. Note that if the file is already in the repository, it won't REMOVE it... it just won't prompt you to add it next time it sees a file with that name.</p>
<p>As a si... | <p>If you just put:</p> <pre><code>_changes.erb </code></pre> <p>as an entry, that should work. It will ignore that file name, regardless of location. Note that if the file is already in the repository, it won't REMOVE it... it just won't prompt you to add it next time it sees a file with that name.</p> <p>As a si... | 802, 4333, 5310, 31419 | file, hgignore, ignore, mercurial | <h1>mercurial .hgignore - won't ignore files</h1>
<p>I'm trying to ignore a file in my project with .hgignore, and just can't figure it out. The file is located in app/views/patterns/_changes.erb (relative to the root of the project, where .hgignore is), and nothing I try seem to work:</p>
<pre><code>#.hgignore
syntax... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,311 | mercurial | # mercurial .hgignore - won't ignore files
I'm trying to ignore a file in my project with .hgignore, and just can't figure it out. The file is located in app/views/patterns/_changes.erb (relative to the root of the project, where .hgignore is), and nothing I try seem to work:
```
#.hgignore
syntax: glob
app/views/pat... | If you just put:
```
_changes.erb
```
as an entry, that should work. It will ignore that file name, regardless of location. Note that if the file is already in the repository, it won't REMOVE it... it just won't prompt you to add it next time it sees a file with that name.
As a side note, if you want to remove a fil... |
7429332 | How do you disable mercurial from leaving .orig files after a merge? | 36 | 2011-09-15 10:21:55 | <p>After updating TortoiseHg+Mercurial a while back I am starting to get <code>.orig</code> files after merges. I have looked at the solutions for removing/purging them but I am looking for a way to disable the files from being left behind. After doing merges fine without these files appearing I was wondering if this ... | 10,916 | null | 2022-03-20 22:31:56 | 18,749,444 | 12 | 2013-09-11 19:16:13 | 151,098 | 2017-06-30 10:32:14 | https://stackoverflow.com/q/7429332 | https://stackoverflow.com/a/18749444 | <p><strong>Update:</strong></p>
<p>According to the Mercurial <a href="http://www.selenic.com/mercurial/hgrc.5.html#defaults" rel="nofollow noreferrer">config documentation</a> the defaults section is deprecated. The <a href="https://www.mercurial-scm.org/wiki/Defaults" rel="nofollow noreferrer">Mercurial wiki</a> is... | <p><strong>Update:</strong></p> <p>According to the Mercurial <a href="http://www.selenic.com/mercurial/hgrc.5.html#defaults" rel="nofollow noreferrer">config documentation</a> the defaults section is deprecated. The <a href="https://www.mercurial-scm.org/wiki/Defaults" rel="nofollow noreferrer">Mercurial wiki</a> is... | 717, 802, 8122 | mercurial, merge, tortoisehg | <h1>How do you disable mercurial from leaving .orig files after a merge?</h1>
<p>After updating TortoiseHg+Mercurial a while back I am starting to get <code>.orig</code> files after merges. I have looked at the solutions for removing/purging them but I am looking for a way to disable the files from being left behind. ... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,312 | mercurial | # How do you disable mercurial from leaving .orig files after a merge?
After updating TortoiseHg+Mercurial a while back I am starting to get `.orig` files after merges. I have looked at the solutions for removing/purging them but I am looking for a way to disable the files from being left behind. After doing merges fi... | **Update:**
According to the Mercurial [config documentation](http://www.selenic.com/mercurial/hgrc.5.html#defaults) the defaults section is deprecated. The [Mercurial wiki](https://www.mercurial-scm.org/wiki/Defaults) is also particularly critical of their use. The recommended replacement is to create a command alias... |
929508 | Mercurial with multiple projects | 32 | 2009-05-30 10:35:06 | <p>I have a couple of projects with different release cycles sitting in my SVN repository. Releases are created by using the classic tags structure in SVN. When there are bugs to fix in releases a branch is created from a tag, the bug is fixed and then merged from there into trunk.</p>
<p>Now, for multiple reasons, I ... | 8,211 | 33,827 | 2015-07-03 10:20:00 | 929,546 | 12 | 2009-05-30 10:59:57 | 33,412 | 2009-05-30 10:59:57 | https://stackoverflow.com/q/929508 | https://stackoverflow.com/a/929546 | <p>Some subversion repositories will group logically unrelated things (i.e. projects with different version numbers and release cycles) under one trunk:</p>
<pre><code>.
|-- branches
| |-- project-a-1.x
| `-- project-a-feature-1
|-- tags
| |-- project-a-1.0
| |-- project-b-1.0
| `-- project-b-1.1
`-- trunk
... | <p>Some subversion repositories will group logically unrelated things (i.e. projects with different version numbers and release cycles) under one trunk:</p> <pre><code>. |-- branches | |-- project-a-1.x | `-- project-a-feature-1 |-- tags | |-- project-a-1.0 | |-- project-b-1.0 | `-- project-b-1.1 `-- trunk ... | 456, 802, 3346, 8951 | dvcs, mercurial, repository-design, version-control | <h1>Mercurial with multiple projects</h1>
<p>I have a couple of projects with different release cycles sitting in my SVN repository. Releases are created by using the classic tags structure in SVN. When there are bugs to fix in releases a branch is created from a tag, the bug is fixed and then merged from there into tr... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,313 | mercurial | # Mercurial with multiple projects
I have a couple of projects with different release cycles sitting in my SVN repository. Releases are created by using the classic tags structure in SVN. When there are bugs to fix in releases a branch is created from a tag, the bug is fixed and then merged from there into trunk.
Now... | Some subversion repositories will group logically unrelated things (i.e. projects with different version numbers and release cycles) under one trunk:
```
.
|-- branches
| |-- project-a-1.x
| `-- project-a-feature-1
|-- tags
| |-- project-a-1.0
| |-- project-b-1.0
| `-- project-b-1.1
`-- trunk
|-- project... |
47943124 | Creating Terrain Map with SRTM HGT File | 22 | 2017-12-22 14:29:38 | <p>I am working on an iOS application. Where I show the Elevation and Topography map of a certain area. I have managed to download the .hgt file within app from <a href="http://www.viewfinderpanoramas.org/Coverage%20map%20viewfinderpanoramas_org3.htm" rel="noreferrer">here</a>.</p>
<p>So far I am able to extract the E... | 2,362 | 1,116,104 | 2018-01-08 17:43:43 | 48,004,922 | 12 | 2017-12-28 09:33:03 | 1,894,067 | 2017-12-28 09:59:38 | https://stackoverflow.com/q/47943124 | https://stackoverflow.com/a/48004922 | <p>With iOS you have access to Maps through <a href="https://developer.apple.com/documentation/mapkit" rel="noreferrer">MapKit</a> framework to display map or satellite imagery directly from your app's interface, you can use also Google Maps through <a href="https://developers.google.com/maps/documentation/ios-sdk/" re... | <p>With iOS you have access to Maps through <a href="https://developer.apple.com/documentation/mapkit" rel="noreferrer">MapKit</a> framework to display map or satellite imagery directly from your app's interface, you can use also Google Maps through <a href="https://developers.google.com/maps/documentation/ios-sdk/" re... | 18056, 58338, 104797, 128411, 128412 | hgt, ios, srtm, swift, terrain | <h1>Creating Terrain Map with SRTM HGT File</h1>
<p>I am working on an iOS application. Where I show the Elevation and Topography map of a certain area. I have managed to download the .hgt file within app from <a href="http://www.viewfinderpanoramas.org/Coverage%20map%20viewfinderpanoramas_org3.htm" rel="noreferrer">he... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,314 | mercurial | # Creating Terrain Map with SRTM HGT File
I am working on an iOS application. Where I show the Elevation and Topography map of a certain area. I have managed to download the .hgt file within app from [here](http://www.viewfinderpanoramas.org/Coverage%20map%20viewfinderpanoramas_org3.htm).
So far I am able to extract ... | With iOS you have access to Maps through [MapKit](https://developer.apple.com/documentation/mapkit) framework to display map or satellite imagery directly from your app's interface, you can use also Google Maps through [Google Maps SDK](https://developers.google.com/maps/documentation/ios-sdk/) for iOS but both (iOS Ma... |
2733248 | Unknown parent error in Mercurial | 20 | 2010-04-28 21:24:28 | <p>I am getting a error that is preventing me to pull, even force pull.</p>
<pre><code>hg command error:
transaction abort!
rollback completed
abort: data/assets/images/skins/file/skin.jpg.i@0727c4489edc: unknown parent!
</code></pre>
<p>Is there anyway to remove, revert or fix just this file, its not even used, and ... | 10,752 | 312,842 | 2021-01-30 11:17:37 | 2,734,006 | 12 | 2010-04-29 00:17:43 | 6,277 | 2010-04-29 00:17:43 | https://stackoverflow.com/q/2733248 | https://stackoverflow.com/a/2734006 | <p>Try running <code>hg verify</code> on your repository and see if that helps.</p>
| <p>Try running <code>hg verify</code> on your repository and see if that helps.</p> | 802 | mercurial | <h1>Unknown parent error in Mercurial</h1>
<p>I am getting a error that is preventing me to pull, even force pull.</p>
<pre><code>hg command error:
transaction abort!
rollback completed
abort: data/assets/images/skins/file/skin.jpg.i@0727c4489edc: unknown parent!
</code></pre>
<p>Is there anyway to remove, revert or ... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,316 | mercurial | # Unknown parent error in Mercurial
I am getting a error that is preventing me to pull, even force pull.
```
hg command error:
transaction abort!
rollback completed
abort: data/assets/images/skins/file/skin.jpg.i@0727c4489edc: unknown parent!
```
Is there anyway to remove, revert or fix just this file, its not even ... | Try running `hg verify` on your repository and see if that helps. |
2521197 | Prevent "hg status" from showing everything under untracked directories | 15 | 2010-03-26 04:49:18 | <p>I find the output of <code>hg status</code> too verbose for untracked directories. Suppose I have an empty repository that's managed by both <code>git</code> and <code>hg</code>. So there would be two directories, <code>.git</code> and <code>.hg</code>.</p>
<p>The output of <code>git status</code> is:</p>
<pre><co... | 8,464 | 111,391 | 2017-06-22 17:46:57 | 2,521,234 | 12 | 2010-03-26 05:02:40 | 6,309 | 2015-04-25 15:31:16 | https://stackoverflow.com/q/2521197 | https://stackoverflow.com/a/2521234 | <p>You can just add in your <code>.hgignore</code> file</p>
<pre><code> syntax:glob
.git
.gitattributes
.gitignore
</code></pre>
<p>To ignore <code>.git</code> entirely, and other git-related files.</p>
<p>If the goal is to only limit to a directory, you can still use <code>.hgignore</code> if you add an hidden file... | <p>You can just add in your <code>.hgignore</code> file</p> <pre><code> syntax:glob .git .gitattributes .gitignore </code></pre> <p>To ignore <code>.git</code> entirely, and other git-related files.</p> <p>If the goal is to only limit to a directory, you can still use <code>.hgignore</code> if you add an hidden file... | 802 | mercurial | <h1>Prevent "hg status" from showing everything under untracked directories</h1>
<p>I find the output of <code>hg status</code> too verbose for untracked directories. Suppose I have an empty repository that's managed by both <code>git</code> and <code>hg</code>. So there would be two directories, <code>.git</code> and ... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,318 | mercurial | # Prevent "hg status" from showing everything under untracked directories
I find the output of `hg status` too verbose for untracked directories. Suppose I have an empty repository that's managed by both `git` and `hg`. So there would be two directories, `.git` and `.hg`.
The output of `git status` is:
```
# Untrack... | You can just add in your `.hgignore` file
```
syntax:glob
.git
.gitattributes
.gitignore
```
To ignore `.git` entirely, and other git-related files.
If the goal is to only limit to a directory, you can still use `.hgignore` if you add an hidden file in that directory (after [this answer](https://stackoverflow.com/q... |
5053640 | Get a single file from a remote mercurial repository | 12 | 2011-02-19 21:26:25 | <p>Is there a way to programmatically download a single file from a remote Mercurial repository, in Java? I have asked a <a href="https://stackoverflow.com/questions/3642143/get-a-single-file-from-a-remote-git-repository">very similar question regarding git</a>; now I'm hoping I can do something similar with mercurial ... | 10,607 | 242,762 | 2018-03-05 11:51:26 | 5,053,998 | 12 | 2011-02-19 22:38:23 | 52,626 | 2018-03-05 11:51:26 | https://stackoverflow.com/q/5053640 | https://stackoverflow.com/a/5053998 | <p>The <a href="https://www.mercurial-scm.org/wiki/WireProtocol" rel="nofollow noreferrer">mercurial wire protocol</a> doesn't have a command for reading a single file from a remote repository. That's why the <code>hg</code> command line client can't do this either. The idea is that you should always make a local clone... | <p>The <a href="https://www.mercurial-scm.org/wiki/WireProtocol" rel="nofollow noreferrer">mercurial wire protocol</a> doesn't have a command for reading a single file from a remote repository. That's why the <code>hg</code> command line client can't do this either. The idea is that you should always make a local clone... | 17, 802 | java, mercurial | <h1>Get a single file from a remote mercurial repository</h1>
<p>Is there a way to programmatically download a single file from a remote Mercurial repository, in Java? I have asked a <a href="https://stackoverflow.com/questions/3642143/get-a-single-file-from-a-remote-git-repository">very similar question regarding git<... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,319 | mercurial | # Get a single file from a remote mercurial repository
Is there a way to programmatically download a single file from a remote Mercurial repository, in Java? I have asked a [very similar question regarding git](https://stackoverflow.com/questions/3642143/get-a-single-file-from-a-remote-git-repository); now I'm hoping ... | The [mercurial wire protocol](https://www.mercurial-scm.org/wiki/WireProtocol) doesn't have a command for reading a single file from a remote repository. That's why the `hg` command line client can't do this either. The idea is that you should always make a local clone for such things.
However, the various web interfa... |
4229369 | How Do I Migrate From One Mercurial Server To Another Without Losing My History? | 12 | 2010-11-19 21:07:14 | <p>I have a project where I'm using Bitbucket as my HG server, but I've recently discovered that as a lone developer I can use Fogbugz/Kiln for free. I want to move my files into Kiln but I don't want to lose my history. I'm sure there's a dead-stupid easy way to do it, but I just don't know. How do I do this?</p>
<p>... | 2,449 | 7,173 | 2017-06-16 15:55:50 | 4,229,403 | 12 | 2010-11-19 21:11:54 | 382,471 | 2010-11-19 21:11:54 | https://stackoverflow.com/q/4229369 | https://stackoverflow.com/a/4229403 | <p>Create the new project repo and do the following with your current copy of the original repo: <code>hg push new-repo-path</code>.</p>
<p>Then you use the new path in the future. You can delete the bitbucket repo.</p>
<p>With Mercurial, all history is in every copy of the repository, including your local copies.</... | <p>Create the new project repo and do the following with your current copy of the original repo: <code>hg push new-repo-path</code>.</p> <p>Then you use the new path in the future. You can delete the bitbucket repo.</p> <p>With Mercurial, all history is in every copy of the repository, including your local copies.</... | 97, 802 | mercurial, migration | <h1>How Do I Migrate From One Mercurial Server To Another Without Losing My History?</h1>
<p>I have a project where I'm using Bitbucket as my HG server, but I've recently discovered that as a lone developer I can use Fogbugz/Kiln for free. I want to move my files into Kiln but I don't want to lose my history. I'm sure ... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,320 | mercurial | # How Do I Migrate From One Mercurial Server To Another Without Losing My History?
I have a project where I'm using Bitbucket as my HG server, but I've recently discovered that as a lone developer I can use Fogbugz/Kiln for free. I want to move my files into Kiln but I don't want to lose my history. I'm sure there's a... | Create the new project repo and do the following with your current copy of the original repo: `hg push new-repo-path`.
Then you use the new path in the future. You can delete the bitbucket repo.
With Mercurial, all history is in every copy of the repository, including your local copies. |
34278136 | Finding Large Files in Mercurial Repository | 11 | 2015-12-14 22:56:06 | <p>Similar to <a href="https://stackoverflow.com/questions/10622179/how-to-find-identify-large-files-commits-in-git-history">this link</a> but for mercurial. I'd like to find the files that are most contributing to the size of my mercurial repository.</p>
<p>I intend to use hg convert to create a new, smaller reposito... | 1,629 | 450,745 | 2015-12-15 00:05:12 | 34,278,786 | 12 | 2015-12-14 23:58:46 | 2,611,159 | 2015-12-15 00:05:12 | https://stackoverflow.com/q/34278136 | https://stackoverflow.com/a/34278786 | <p>Check <code>hg help fileset</code>. Something like</p>
<pre><code>hg files "set:size('>1M')"
</code></pre>
<p>should do the trick for you. You might need to operate over all revisions, though as it only operates on one revision. In bash I'd try something like</p>
<pre><code>for i in `hg log -r"all()" "set:size... | <p>Check <code>hg help fileset</code>. Something like</p> <pre><code>hg files "set:size('>1M')" </code></pre> <p>should do the trick for you. You might need to operate over all revisions, though as it only operates on one revision. In bash I'd try something like</p> <pre><code>for i in `hg log -r"all()" "set:size... | 802, 75798 | mercurial, mercurial-convert | <h1>Finding Large Files in Mercurial Repository</h1>
<p>Similar to <a href="https://stackoverflow.com/questions/10622179/how-to-find-identify-large-files-commits-in-git-history">this link</a> but for mercurial. I'd like to find the files that are most contributing to the size of my mercurial repository.</p>
<p>I inten... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,321 | mercurial | # Finding Large Files in Mercurial Repository
Similar to [this link](https://stackoverflow.com/questions/10622179/how-to-find-identify-large-files-commits-in-git-history) but for mercurial. I'd like to find the files that are most contributing to the size of my mercurial repository.
I intend to use hg convert to crea... | Check `hg help fileset`. Something like
```
hg files "set:size('>1M')"
```
should do the trick for you. You might need to operate over all revisions, though as it only operates on one revision. In bash I'd try something like
```
for i in `hg log -r"all()" "set:size('>400k')" --template="{rev}\n"`; do hg files -r$i "... |
13071742 | Mercurial: what are the consequences of changing a phase? | 11 | 2012-10-25 15:14:51 | <p>In Mercurial, the phase of a revision can be changed arbitrarily. What are the consequences of a phase change for all possible transitions <em>(public, draft, secret) x (public, draft, secret)</em>? Which phase changes are safe? Which may cause troubles and which kind of troubles? Which are more or less no-ops?</p>
| 3,829 | 241,453 | 2013-07-25 23:39:43 | 13,077,894 | 12 | 2012-10-25 21:54:14 | 781,517 | 2012-11-03 00:03:00 | https://stackoverflow.com/q/13071742 | https://stackoverflow.com/a/13077894 | <p>The default phase for a commit is <code>draft</code>, that's how they were treated when the phases didn't exist. When pushing a <code>draft</code> changeset, mercurial automatically changes its phase to <code>public</code>. You can use it to know which changesets you have already published or not.</p>
<p>But the re... | <p>The default phase for a commit is <code>draft</code>, that's how they were treated when the phases didn't exist. When pushing a <code>draft</code> changeset, mercurial automatically changes its phase to <code>public</code>. You can use it to know which changesets you have already published or not.</p> <p>But the re... | 802, 34033 | mercurial, phase | <h1>Mercurial: what are the consequences of changing a phase?</h1>
<p>In Mercurial, the phase of a revision can be changed arbitrarily. What are the consequences of a phase change for all possible transitions <em>(public, draft, secret) x (public, draft, secret)</em>? Which phase changes are safe? Which may cause troub... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,322 | mercurial | # Mercurial: what are the consequences of changing a phase?
In Mercurial, the phase of a revision can be changed arbitrarily. What are the consequences of a phase change for all possible transitions *(public, draft, secret) x (public, draft, secret)*? Which phase changes are safe? Which may cause troubles and which ki... | The default phase for a commit is `draft`, that's how they were treated when the phases didn't exist. When pushing a `draft` changeset, mercurial automatically changes its phase to `public`. You can use it to know which changesets you have already published or not.
But the real issue is that when the changeset is in `... |
8929130 | Create a new branch, made a lot of changes, how to view list of files changed? | 10 | 2012-01-19 15:56:08 | <p>So there was a new branch created where we made some breaking changes to the codebase.</p>
<p>Now we are going to merge, but before that I want to get a list of all the files that were changed in the branch.</p>
<p>How can I get a list of files? I tried:</p>
<pre><code>hg status --change REV
</code></pre>
<p>But... | 2,052 | 839,471 | 2017-10-25 10:18:07 | 8,929,257 | 12 | 2012-01-19 16:04:41 | 110,204 | 2012-01-20 10:07:07 | https://stackoverflow.com/q/8929130 | https://stackoverflow.com/a/8929257 | <p>Try with</p>
<pre><code>$ hg status --rev "branch('your-branch')"
</code></pre>
<p>to get the changes between the first and the last changeset on the branch (<code>hg status</code> will implicitly use <code>min(branch('your-branch'))</code> and <code>max(branch('your-branch'))</code> when you give it a range of re... | <p>Try with</p> <pre><code>$ hg status --rev "branch('your-branch')" </code></pre> <p>to get the changes between the first and the last changeset on the branch (<code>hg status</code> will implicitly use <code>min(branch('your-branch'))</code> and <code>max(branch('your-branch'))</code> when you give it a range of re... | 802, 1879, 3346, 43091 | branch, dvcs, kiln, mercurial | <h1>Create a new branch, made a lot of changes, how to view list of files changed?</h1>
<p>So there was a new branch created where we made some breaking changes to the codebase.</p>
<p>Now we are going to merge, but before that I want to get a list of all the files that were changed in the branch.</p>
<p>How can I ge... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,323 | mercurial | # Create a new branch, made a lot of changes, how to view list of files changed?
So there was a new branch created where we made some breaking changes to the codebase.
Now we are going to merge, but before that I want to get a list of all the files that were changed in the branch.
How can I get a list of files? I tr... | Try with
```
$ hg status --rev "branch('your-branch')"
```
to get the changes between the first and the last changeset on the branch (`hg status` will implicitly use `min(branch('your-branch'))` and `max(branch('your-branch'))` when you give it a range of revisions like this).
Since you'll be merging, you should rea... |
5791190 | Apply patches in branch | 9 | 2011-04-26 13:38:07 | <p>I receive a patches from a contributor. Apparently, he produces the patches in trunk. However, I would like to commit his changes to a new branch. May I know how I can do so through Tortoise-Hg?</p>
| 4,513 | 72,437 | 2013-05-23 14:04:20 | 5,792,186 | 12 | 2011-04-26 14:52:31 | 63,147 | 2011-04-27 18:44:06 | https://stackoverflow.com/q/5791190 | https://stackoverflow.com/a/5792186 | <p>The directions found below assume you want the patches isolated on a <code>named branch</code>.</p>
<p>Using the command-line, it is easy to apply patches to a new named branch. However if you want to do this using TortoiseHg only, you must create the named branch with an empty commit prior to applying the patches... | <p>The directions found below assume you want the patches isolated on a <code>named branch</code>.</p> <p>Using the command-line, it is easy to apply patches to a new named branch. However if you want to do this using TortoiseHg only, you must create the named branch with an empty commit prior to applying the patches... | 802, 8122 | mercurial, tortoisehg | <h1>Apply patches in branch</h1>
<p>I receive a patches from a contributor. Apparently, he produces the patches in trunk. However, I would like to commit his changes to a new branch. May I know how I can do so through Tortoise-Hg?</p>
| q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,324 | mercurial | # Apply patches in branch
I receive a patches from a contributor. Apparently, he produces the patches in trunk. However, I would like to commit his changes to a new branch. May I know how I can do so through Tortoise-Hg? | The directions found below assume you want the patches isolated on a `named branch`.
Using the command-line, it is easy to apply patches to a new named branch. However if you want to do this using TortoiseHg only, you must create the named branch with an empty commit prior to applying the patches.
## Using the comman... |
48881677 | Branch per feature\story\epic VS branch per sub-task in a Frontend+Backend repo? | 8 | 2018-02-20 09:21:22 | <p>We have a team in web development project and we've decided to go with a single repository with its pros and cons. We have our backlog split up into Jira stories and every story has several FE and BE tasks. Like:</p>
<ol>
<li><p>ABC-1 Display cats</p>
<p>1.1. ABC-2 [FE] Display cats markup</p>
<p>1.2. ABC-3 [FE] ... | 5,681 | 3,468,806 | 2023-06-06 13:31:04 | 48,881,996 | 12 | 2018-02-20 09:37:06 | 3,473,807 | 2018-02-20 09:37:06 | https://stackoverflow.com/q/48881677 | https://stackoverflow.com/a/48881996 | <p>You can create a feature branch like <code>abc-1-display-cats</code> branch from <code>dev</code> branch. For each of the subtask create a new branch <code>abc-4-create-crud-endpoints-cats</code> from the feature branch <code>abc-1-display-cats</code> and merge it back to the same feature branch. <code>dev</code> br... | <p>You can create a feature branch like <code>abc-1-display-cats</code> branch from <code>dev</code> branch. For each of the subtask create a new branch <code>abc-4-create-crud-endpoints-cats</code> from the feature branch <code>abc-1-display-cats</code> and merge it back to the same feature branch. <code>dev</code> br... | 119, 802, 6004 | git, jira, mercurial | <h1>Branch per feature\story\epic VS branch per sub-task in a Frontend+Backend repo?</h1>
<p>We have a team in web development project and we've decided to go with a single repository with its pros and cons. We have our backlog split up into Jira stories and every story has several FE and BE tasks. Like:</p>
<ol>
<li>... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,325 | mercurial | # Branch per feature\story\epic VS branch per sub-task in a Frontend+Backend repo?
We have a team in web development project and we've decided to go with a single repository with its pros and cons. We have our backlog split up into Jira stories and every story has several FE and BE tasks. Like:
1. ABC-1 Display cats
... | You can create a feature branch like `abc-1-display-cats` branch from `dev` branch. For each of the subtask create a new branch `abc-4-create-crud-endpoints-cats` from the feature branch `abc-1-display-cats` and merge it back to the same feature branch. `dev` branch will interact only with feature branch, so you can pe... |
8560783 | Are my changes gone after "hg revert"? | 8 | 2011-12-19 11:41:17 | <p>After my last commit I wrote a bunch of code. Before committing again, I ran <code>hg add</code>.
It added some files I was not interested in, so I ran</p>
<pre><code>$ hg revert --all
</code></pre>
<p>thinking that all the added files would go away. They did go away, but I also reverted all the code written sinc... | 5,161 | 11,100 | 2017-05-09 03:28:17 | 8,560,914 | 12 | 2011-12-19 11:51:39 | 110,204 | 2011-12-19 18:32:42 | https://stackoverflow.com/q/8560783 | https://stackoverflow.com/a/8560914 | <p>When you <code>hg revert</code> a file (or <code>--all</code> files), Mercurial <em>saves a backup</em> of the file under another name. This is to make it harder for you to lose work. If the file was called <code>foo</code>, you will have a <code>foo.orig</code> with the original version.</p>
<p>You can use</p>
<p... | <p>When you <code>hg revert</code> a file (or <code>--all</code> files), Mercurial <em>saves a backup</em> of the file under another name. This is to make it harder for you to lose work. If the file was called <code>foo</code>, you will have a <code>foo.orig</code> with the original version.</p> <p>You can use</p> <p... | 802 | mercurial | <h1>Are my changes gone after "hg revert"?</h1>
<p>After my last commit I wrote a bunch of code. Before committing again, I ran <code>hg add</code>.
It added some files I was not interested in, so I ran</p>
<pre><code>$ hg revert --all
</code></pre>
<p>thinking that all the added files would go away. They did go awa... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,326 | mercurial | # Are my changes gone after "hg revert"?
After my last commit I wrote a bunch of code. Before committing again, I ran `hg add`.
It added some files I was not interested in, so I ran
```
$ hg revert --all
```
thinking that all the added files would go away. They did go away, but I also reverted all the code written s... | When you `hg revert` a file (or `--all` files), Mercurial *saves a backup* of the file under another name. This is to make it harder for you to lose work. If the file was called `foo`, you will have a `foo.orig` with the original version.
You can use
```
$ hg status --all --include "**.orig"
```
to see all the `.ori... |
6598360 | How can I limit the size of a Mercurial log? | 8 | 2011-07-06 14:48:09 | <p>When I run Mercurial's "hg log" command from a terminal window, the results often fall off the screen, forcing me to scroll up to the top. As a result, I created a template to reduce the verboseness and format of the log:</p>
<pre><code>[alias]
slog = log --template '{rev}:{node|short} {desc|firstline} ({author})\n... | 2,617 | 10,040 | 2012-09-11 12:32:24 | 6,598,713 | 12 | 2011-07-06 15:11:08 | 22,211 | 2011-07-06 15:21:49 | https://stackoverflow.com/q/6598360 | https://stackoverflow.com/a/6598713 | <p>You could define your alias to do only a fixed limit in this way:</p>
<pre><code>slog = log --limit 10 --template "{rev}:{node|short} {desc|firstline} ({author})\n"
</code></pre>
<p>Or, you could put <code>--limit</code> on the end so that you can pass a number to it, as arguments to an alias will be appended to t... | <p>You could define your alias to do only a fixed limit in this way:</p> <pre><code>slog = log --limit 10 --template "{rev}:{node|short} {desc|firstline} ({author})\n" </code></pre> <p>Or, you could put <code>--limit</code> on the end so that you can pass a number to it, as arguments to an alias will be appended to t... | 456, 802, 1478 | mercurial, templates, version-control | <h1>How can I limit the size of a Mercurial log?</h1>
<p>When I run Mercurial's "hg log" command from a terminal window, the results often fall off the screen, forcing me to scroll up to the top. As a result, I created a template to reduce the verboseness and format of the log:</p>
<pre><code>[alias]
slog = log --temp... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,327 | mercurial | # How can I limit the size of a Mercurial log?
When I run Mercurial's "hg log" command from a terminal window, the results often fall off the screen, forcing me to scroll up to the top. As a result, I created a template to reduce the verboseness and format of the log:
```
[alias]
slog = log --template '{rev}:{node|sh... | You could define your alias to do only a fixed limit in this way:
```
slog = log --limit 10 --template "{rev}:{node|short} {desc|firstline} ({author})\n"
```
Or, you could put `--limit` on the end so that you can pass a number to it, as arguments to an alias will be appended to the end:
```
slog = log --template "{r... |
4361233 | Where to put .hgignore? | 8 | 2010-12-05 21:15:49 | <p>I'm wondering where to put .hgignore file; in the main repository or each programmer should have it on his cloned copy?</p>
<p>Please clarify. Thanks.</p>
| 2,698 | 504,715 | 2017-06-16 13:09:13 | 4,361,406 | 12 | 2010-12-05 21:44:26 | 432,745 | 2017-06-16 13:09:13 | https://stackoverflow.com/q/4361233 | https://stackoverflow.com/a/4361406 | <p><strong>You should put the file at the root of your repository.</strong></p>
<p>See : </p>
<ul>
<li><a href="https://www.selenic.com/mercurial/hgignore.5.html" rel="nofollow noreferrer">https://www.selenic.com/mercurial/hgignore.5.html</a> </li>
<li><a href="https://www.mercurial-scm.org/wiki/.hgignore" rel="nofol... | <p><strong>You should put the file at the root of your repository.</strong></p> <p>See : </p> <ul> <li><a href="https://www.selenic.com/mercurial/hgignore.5.html" rel="nofollow noreferrer">https://www.selenic.com/mercurial/hgignore.5.html</a> </li> <li><a href="https://www.mercurial-scm.org/wiki/.hgignore" rel="nofol... | 456, 802 | mercurial, version-control | <h1>Where to put .hgignore?</h1>
<p>I'm wondering where to put .hgignore file; in the main repository or each programmer should have it on his cloned copy?</p>
<p>Please clarify. Thanks.</p>
| q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,328 | mercurial | # Where to put .hgignore?
I'm wondering where to put .hgignore file; in the main repository or each programmer should have it on his cloned copy?
Please clarify. Thanks. | **You should put the file at the root of your repository.**
See :
- <https://www.selenic.com/mercurial/hgignore.5.html>
- <https://www.mercurial-scm.org/wiki/.hgignore>
**It says**:
These files can be ignored by listing them in a .hgignore file in the root of the working directory. The .hgignore file must be create... |
2684727 | Adding changes from one Mercurial repository to another | 8 | 2010-04-21 16:27:08 | <p>When changing the VCS for my project <a href="http://code.google.com/p/fakeiteasy/" rel="noreferrer">FakeItEasy</a> from SVN to Mercurial on Google Code I was a bit too eager (I'm funny like that). What I did was just checking the latest version out of SVN and then commiting that checkout as the first revision of th... | 3,847 | 46,187 | 2013-12-22 18:05:06 | 2,684,845 | 12 | 2010-04-21 16:45:14 | 8,992 | 2013-12-22 18:05:06 | https://stackoverflow.com/q/2684727 | https://stackoverflow.com/a/2684845 | <p>So long as you're changing the hashes on the new revisions (you are), you might as well just use <code>export</code> and <code>import</code> (or the <code>transplant</code> command that is a wrapper around the two).</p>
<p>You already did your convert, which is great, now go into repo B and do:</p>
<pre><code>hg e... | <p>So long as you're changing the hashes on the new revisions (you are), you might as well just use <code>export</code> and <code>import</code> (or the <code>transplant</code> command that is a wrapper around the two).</p> <p>You already did your convert, which is great, now go into repo B and do:</p> <pre><code>hg e... | 63, 802, 75798 | mercurial, mercurial-convert, svn | <h1>Adding changes from one Mercurial repository to another</h1>
<p>When changing the VCS for my project <a href="http://code.google.com/p/fakeiteasy/" rel="noreferrer">FakeItEasy</a> from SVN to Mercurial on Google Code I was a bit too eager (I'm funny like that). What I did was just checking the latest version out of... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,329 | mercurial | # Adding changes from one Mercurial repository to another
When changing the VCS for my project [FakeItEasy](http://code.google.com/p/fakeiteasy/) from SVN to Mercurial on Google Code I was a bit too eager (I'm funny like that). What I did was just checking the latest version out of SVN and then commiting that checkout... | So long as you're changing the hashes on the new revisions (you are), you might as well just use `export` and `import` (or the `transplant` command that is a wrapper around the two).
You already did your convert, which is great, now go into repo B and do:
```
hg export -o 'changeset-%R.patch' 1:tip
```
that will cre... |
25490455 | replicate Hg repo with all largefiles | 7 | 2014-08-25 16:37:13 | <p>We have a large, old repository with largefiles. I want to replicate the repository to a backup server using a cron script that runs <code>hg pull</code>. However, this command doesn't retrieve the largefiles.</p>
<p>I currently have 2GB of history replicated, but I'm missing 6GB of largefiles. How can I get Hg to ... | 2,652 | 107,357 | 2014-08-26 06:38:31 | 25,499,524 | 12 | 2014-08-26 06:38:31 | 370,908 | 2014-08-26 06:38:31 | https://stackoverflow.com/q/25490455 | https://stackoverflow.com/a/25499524 | <p>By default, only largefiles for the revision you update to will be downloaded.</p>
<p>'hg help largefiles' says:</p>
<pre><code>When you pull a changeset that affects largefiles from a remote repository,
the largefiles for the changeset will by default not be pulled down. However,
when you update to such a revisio... | <p>By default, only largefiles for the revision you update to will be downloaded.</p> <p>'hg help largefiles' says:</p> <pre><code>When you pull a changeset that affects largefiles from a remote repository, the largefiles for the changeset will by default not be pulled down. However, when you update to such a revisio... | 802 | mercurial | <h1>replicate Hg repo with all largefiles</h1>
<p>We have a large, old repository with largefiles. I want to replicate the repository to a backup server using a cron script that runs <code>hg pull</code>. However, this command doesn't retrieve the largefiles.</p>
<p>I currently have 2GB of history replicated, but I'm ... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,331 | mercurial | # replicate Hg repo with all largefiles
We have a large, old repository with largefiles. I want to replicate the repository to a backup server using a cron script that runs `hg pull`. However, this command doesn't retrieve the largefiles.
I currently have 2GB of history replicated, but I'm missing 6GB of largefiles. ... | By default, only largefiles for the revision you update to will be downloaded.
'hg help largefiles' says:
```
When you pull a changeset that affects largefiles from a remote repository,
the largefiles for the changeset will by default not be pulled down. However,
when you update to such a revision, any largefiles nee... |
23698124 | What does "use 'hg update' to get a consistent checkout" mean? | 7 | 2014-05-16 14:41:35 | <p>I accidentally ran <code>hg update featurebranch</code> while my working directory had changes. When it asked me to resolve merge conflicts on the first file, I immediately pressed Ctrl-C to kill the command. Now when I try to commit I get the error:</p>
<pre><code>abort: last update was interrupted
(use 'hg update... | 5,786 | 683,415 | 2015-11-19 11:25:57 | 23,699,026 | 12 | 2014-05-16 15:23:03 | 683,415 | 2014-05-16 15:23:03 | https://stackoverflow.com/q/23698124 | https://stackoverflow.com/a/23699026 | <p><code>hg update -r .</code> will do a no-op update to the working branch without changing any files and fix the error message.</p>
<p><sub>I'm not entirely sure how/why it works, so if someone explains that I will accept their answer.</sub></p>
| <p><code>hg update -r .</code> will do a no-op update to the working branch without changing any files and fix the error message.</p> <p><sub>I'm not entirely sure how/why it works, so if someone explains that I will accept their answer.</sub></p> | 717, 802 | mercurial, merge | <h1>What does "use 'hg update' to get a consistent checkout" mean?</h1>
<p>I accidentally ran <code>hg update featurebranch</code> while my working directory had changes. When it asked me to resolve merge conflicts on the first file, I immediately pressed Ctrl-C to kill the command. Now when I try to commit I get the e... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,332 | mercurial | # What does "use 'hg update' to get a consistent checkout" mean?
I accidentally ran `hg update featurebranch` while my working directory had changes. When it asked me to resolve merge conflicts on the first file, I immediately pressed Ctrl-C to kill the command. Now when I try to commit I get the error:
```
abort: la... | `hg update -r .` will do a no-op update to the working branch without changing any files and fix the error message.
I'm not entirely sure how/why it works, so if someone explains that I will accept their answer. |
2412881 | Problems while applying an svn patch to a mercurial repository | 7 | 2010-03-09 03:06:10 | <p>Patch file is made with TortoiseSVN-> Create Patch...</p>
<p>Attempting to import patch into the mercurial repository using <code>hg import patchfile</code>.</p>
<p>There seem to be problems with how hg looks for files referenced in the patch file:</p>
<pre><code>unable to find 'gui/gui/RemoteFramework.cpp' for p... | 1,847 | 260,197 | 2015-08-29 17:30:34 | 2,439,178 | 12 | 2010-03-13 17:05:42 | 213,308 | 2010-03-13 17:05:42 | https://stackoverflow.com/q/2412881 | https://stackoverflow.com/a/2439178 | <p>I suspect you need to do <code>hg import --strip 0 patchfile</code> since Subversion doesn't include any prefix on the file path. <code>--base</code> specifies where it should search for files, and <code>--strip</code> says how many (default 1) path elements to ignore on the beginning of the diff headers.</p>
| <p>I suspect you need to do <code>hg import --strip 0 patchfile</code> since Subversion doesn't include any prefix on the file path. <code>--base</code> specifies where it should search for files, and <code>--strip</code> says how many (default 1) path elements to ignore on the beginning of the diff headers.</p> | 63, 656, 802 | mercurial, svn, tortoisesvn | <h1>Problems while applying an svn patch to a mercurial repository</h1>
<p>Patch file is made with TortoiseSVN-> Create Patch...</p>
<p>Attempting to import patch into the mercurial repository using <code>hg import patchfile</code>.</p>
<p>There seem to be problems with how hg looks for files referenced in the patch ... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,334 | mercurial | # Problems while applying an svn patch to a mercurial repository
Patch file is made with TortoiseSVN-> Create Patch...
Attempting to import patch into the mercurial repository using `hg import patchfile`.
There seem to be problems with how hg looks for files referenced in the patch file:
```
unable to find 'gui/gui... | I suspect you need to do `hg import --strip 0 patchfile` since Subversion doesn't include any prefix on the file path. `--base` specifies where it should search for files, and `--strip` says how many (default 1) path elements to ignore on the beginning of the diff headers. |
11194152 | Is there a more efficient way to detect polygon overlap/intersection than PathGeometry.FillContainsWithDetail()? | 6 | 2012-06-25 17:22:43 | <p>I have a method that is gobbling up 25% of my cpu time. I call this method about 27,000 times per second. (Yup, lots of calls since it's updating frequently). I am wondering if anybody knows a faster way to detect if 2 polygons overlap. Basically, I have to check the moving objects on the screen against stationa... | 6,902 | 1,342,454 | 2018-06-14 23:17:03 | 11,251,263 | 12 | 2012-06-28 19:06:16 | 1,342,454 | 2018-06-14 23:17:03 | https://stackoverflow.com/q/11194152 | https://stackoverflow.com/a/11251263 | <p>Ok, after lots of research and finding many partial answers, but none that fully answered the question, I have found a faster way and it is actually about 4.6 times faster than the old way.</p>
<p>I created a special test app to test the speed this. You can find the test app <a href="http://www.customsoftwarezone.... | <p>Ok, after lots of research and finding many partial answers, but none that fully answered the question, I have found a faster way and it is actually about 4.6 times faster than the old way.</p> <p>I created a special test app to test the speed this. You can find the test app <a href="http://www.customsoftwarezone.... | 378, 6239, 19226, 32238, 34885 | pathgeometry, point-in-polygon, polygon, polygons, wpf | <h1>Is there a more efficient way to detect polygon overlap/intersection than PathGeometry.FillContainsWithDetail()?</h1>
<p>I have a method that is gobbling up 25% of my cpu time. I call this method about 27,000 times per second. (Yup, lots of calls since it's updating frequently). I am wondering if anybody knows a... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,335 | mercurial | # Is there a more efficient way to detect polygon overlap/intersection than PathGeometry.FillContainsWithDetail()?
I have a method that is gobbling up 25% of my cpu time. I call this method about 27,000 times per second. (Yup, lots of calls since it's updating frequently). I am wondering if anybody knows a faster way ... | Ok, after lots of research and finding many partial answers, but none that fully answered the question, I have found a faster way and it is actually about 4.6 times faster than the old way.
I created a special test app to test the speed this. You can find the test app [here](http://www.customsoftwarezone.com/polygons/... |
1181002 | Building Mercurial 1.3.1 on Ubuntu Linux | 6 | 2009-07-25 02:19:51 | <p>I'm attempting to build mercurial 1.3.1. I've attempted this thus far on my Mac OS X machine and on a Linux Ubuntu virtual machine that I'm running. </p>
<p>I keep getting errors while running the make. I know there are binaries availble for both Linux and Mac, but I want to build my own copy. I've always skipped o... | 3,337 | 18,196 | 2022-01-05 22:11:28 | 1,181,006 | 12 | 2009-07-25 02:23:17 | 82,865 | 2009-07-25 02:23:17 | https://stackoverflow.com/q/1181002 | https://stackoverflow.com/a/1181006 | <p>Make sure you have the python-dev package installed:</p>
<pre><code>apt-get install python-dev
</code></pre>
| <p>Make sure you have the python-dev package installed:</p> <pre><code>apt-get install python-dev </code></pre> | 58, 802, 4301, 5647, 18520 | build, build-error, linux, makefile, mercurial | <h1>Building Mercurial 1.3.1 on Ubuntu Linux</h1>
<p>I'm attempting to build mercurial 1.3.1. I've attempted this thus far on my Mac OS X machine and on a Linux Ubuntu virtual machine that I'm running. </p>
<p>I keep getting errors while running the make. I know there are binaries availble for both Linux and Mac, but ... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,336 | mercurial | # Building Mercurial 1.3.1 on Ubuntu Linux
I'm attempting to build mercurial 1.3.1. I've attempted this thus far on my Mac OS X machine and on a Linux Ubuntu virtual machine that I'm running.
I keep getting errors while running the make. I know there are binaries availble for both Linux and Mac, but I want to build m... | Make sure you have the python-dev package installed:
```
apt-get install python-dev
``` |
4659135 | Can I set Mercurial config options programmatically? | 18 | 2011-01-11 15:16:54 | <p>I'm looking for a way to set <code>.hgrc</code> configuration items without actually editing the text file. I'm trying to standardize the setup of the <code>hgrc</code> across multiple developers and I would like a command like</p>
<pre><code>hg --config ui.username=foo
</code></pre>
<p>but which also saves that ... | 5,255 | 571,435 | 2018-11-02 11:59:34 | 4,679,947 | 11 | 2011-01-13 12:22:20 | 110,204 | 2015-11-05 20:36:29 | https://stackoverflow.com/q/4659135 | https://stackoverflow.com/a/4679947 | <p>Someone -- either you or Mercurial -- will have to edit the configuration file if you want the config change to be saved :-)</p>
<p>And if you can call Mercurial with</p>
<pre><code>hg --config ui.username=foo
</code></pre>
<p>then you should also be able to do</p>
<pre><code>echo '[ui]' >> ~/.hgrc
echo 'u... | <p>Someone -- either you or Mercurial -- will have to edit the configuration file if you want the config change to be saved :-)</p> <p>And if you can call Mercurial with</p> <pre><code>hg --config ui.username=foo </code></pre> <p>then you should also be able to do</p> <pre><code>echo '[ui]' >> ~/.hgrc echo 'u... | 802, 3574, 34046 | config, hgrc, mercurial | <h1>Can I set Mercurial config options programmatically?</h1>
<p>I'm looking for a way to set <code>.hgrc</code> configuration items without actually editing the text file. I'm trying to standardize the setup of the <code>hgrc</code> across multiple developers and I would like a command like</p>
<pre><code>hg --confi... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,337 | mercurial | # Can I set Mercurial config options programmatically?
I'm looking for a way to set `.hgrc` configuration items without actually editing the text file. I'm trying to standardize the setup of the `hgrc` across multiple developers and I would like a command like
```
hg --config ui.username=foo
```
but which also saves... | Someone -- either you or Mercurial -- will have to edit the configuration file if you want the config change to be saved :-)
And if you can call Mercurial with
```
hg --config ui.username=foo
```
then you should also be able to do
```
echo '[ui]' >> ~/.hgrc
echo 'username = foo' >> ~/.hgrc
```
which will save the ... |
15840429 | How to undo "abort: push creates new remote heads on branch" in mercurial | 17 | 2013-04-05 17:57:23 | <p>I am aware of <a href="https://stackoverflow.com/questions/1170338/mercurial-for-beginners-the-definitive-practical-guide/">Mercurial for Beginners: The Definitive Practical Guide</a> and answers like <a href="https://stackoverflow.com/questions/7448405/mercurial-merge-branches-abort-push-creates-new-remote-branches... | 22,471 | 311,364 | 2016-07-14 19:11:47 | 15,878,188 | 11 | 2013-04-08 11:43:30 | 218,597 | 2013-04-08 11:43:30 | https://stackoverflow.com/q/15840429 | https://stackoverflow.com/a/15878188 | <p>It looks like when you've done an <code>hg merge</code>, you haven't committed the resulting changeset.</p>
<p>When you merge in another branch (in your case you may need to specify <code>hg merge 486</code> to merge in the other users changes), it merges that branch into your working directory. You then need to c... | <p>It looks like when you've done an <code>hg merge</code>, you haven't committed the resulting changeset.</p> <p>When you merge in another branch (in your case you may need to specify <code>hg merge 486</code> to merge in the other users changes), it merges that branch into your working directory. You then need to c... | 456, 802 | mercurial, version-control | <h1>How to undo "abort: push creates new remote heads on branch" in mercurial</h1>
<p>I am aware of <a href="https://stackoverflow.com/questions/1170338/mercurial-for-beginners-the-definitive-practical-guide/">Mercurial for Beginners: The Definitive Practical Guide</a> and answers like <a href="https://stackoverflow.co... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,338 | mercurial | # How to undo "abort: push creates new remote heads on branch" in mercurial
I am aware of [Mercurial for Beginners: The Definitive Practical Guide](https://stackoverflow.com/questions/1170338/mercurial-for-beginners-the-definitive-practical-guide/) and answers like [Mercurial merge branches? (abort: push creates new r... | It looks like when you've done an `hg merge`, you haven't committed the resulting changeset.
When you merge in another branch (in your case you may need to specify `hg merge 486` to merge in the other users changes), it merges that branch into your working directory. You then need to check that all conflicts are resol... |
5991640 | SVN: analog of hg's addremove | 14 | 2011-05-13 12:14:09 | <p>We have a repository with several files (no folders). Each build time we have to download the same folder from another source (db), then commit to SVN changes - update existing, remove not existed and add new files.</p>
<p>So idea is to have 'copy' of db's scripts in SVN each build (that's why <strong>MSBuild</stro... | 1,562 | 462,669 | 2017-06-19 09:19:00 | 5,998,721 | 11 | 2011-05-13 23:22:20 | 454,556 | 2012-11-04 02:32:00 | https://stackoverflow.com/q/5991640 | https://stackoverflow.com/a/5998721 | <p>I personally have a little bash script to do that (being on linux):</p>
<pre><code>svn status | grep "^\?" | gawk '{print $2}' | xargs -r svn add
svn status | grep "^\!" | gawk '{print $2}' | xargs -r svn remove
</code></pre>
<p>EDIT: Thanks to <a href="https://stackoverflow.com/users/152993/cesar">cesar</a>, here... | <p>I personally have a little bash script to do that (being on linux):</p> <pre><code>svn status | grep "^\?" | gawk '{print $2}' | xargs -r svn add svn status | grep "^\!" | gawk '{print $2}' | xargs -r svn remove </code></pre> <p>EDIT: Thanks to <a href="https://stackoverflow.com/users/152993/cesar">cesar</a>, here... | 63, 456, 802 | mercurial, svn, version-control | <h1>SVN: analog of hg's addremove</h1>
<p>We have a repository with several files (no folders). Each build time we have to download the same folder from another source (db), then commit to SVN changes - update existing, remove not existed and add new files.</p>
<p>So idea is to have 'copy' of db's scripts in SVN each ... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,339 | mercurial | # SVN: analog of hg's addremove
We have a repository with several files (no folders). Each build time we have to download the same folder from another source (db), then commit to SVN changes - update existing, remove not existed and add new files.
So idea is to have 'copy' of db's scripts in SVN each build (that's wh... | I personally have a little bash script to do that (being on linux):
```
svn status | grep "^\?" | gawk '{print $2}' | xargs -r svn add
svn status | grep "^\!" | gawk '{print $2}' | xargs -r svn remove
```
EDIT: Thanks to [cesar](https://stackoverflow.com/users/152993/cesar), here's a simpler version:
```
svn status ... |
3691573 | How can I push/pull an individual changeset between repositories in Mercurial? | 14 | 2010-09-11 15:36:57 | <p>I have the following situation:</p>
<ul>
<li>I have site A, which has it's Mercurial repo, and we've been developing it for a while. Let's say A has had 5 revisions.</li>
<li>We now has to create Site B, which is almost identical to site A, except for graphical design, mostly. So I cloned the repo, started site B, ... | 10,647 | 3,314 | 2017-06-16 12:49:38 | 3,691,594 | 11 | 2010-09-11 15:43:46 | 88,123 | 2017-06-16 12:49:38 | https://stackoverflow.com/q/3691573 | https://stackoverflow.com/a/3691594 | <p><a href="https://www.mercurial-scm.org/wiki/wiki/TransplantExtension" rel="nofollow noreferrer">https://www.mercurial-scm.org/wiki/wiki/TransplantExtension</a></p>
<p>See under "Using transplant to cherrypick a set of changesets":</p>
<blockquote>
<p>Transplant can manage multiple changesets or changeset ranges ... | <p><a href="https://www.mercurial-scm.org/wiki/wiki/TransplantExtension" rel="nofollow noreferrer">https://www.mercurial-scm.org/wiki/wiki/TransplantExtension</a></p> <p>See under "Using transplant to cherrypick a set of changesets":</p> <blockquote> <p>Transplant can manage multiple changesets or changeset ranges ... | 802, 4236, 4860, 7330, 20848 | changeset, mercurial, pull, push, repository | <h1>How can I push/pull an individual changeset between repositories in Mercurial?</h1>
<p>I have the following situation:</p>
<ul>
<li>I have site A, which has it's Mercurial repo, and we've been developing it for a while. Let's say A has had 5 revisions.</li>
<li>We now has to create Site B, which is almost identica... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,340 | mercurial | # How can I push/pull an individual changeset between repositories in Mercurial?
I have the following situation:
- I have site A, which has it's Mercurial repo, and we've been developing it for a while. Let's say A has had 5 revisions.
- We now has to create Site B, which is almost identical to site A, except for gra... | <https://www.mercurial-scm.org/wiki/wiki/TransplantExtension>
See under "Using transplant to cherrypick a set of changesets":
> Transplant can manage multiple changesets or changeset ranges like
> this:
>
> ```
> hg transplant REV1:REV2 REV3
> ```
>
> This example would cherrypick the range of changesets specified by... |
12073576 | Stuck with two default branches in Mercurial after broken branch commits | 13 | 2012-08-22 12:51:12 | <p>I've come across a difficulty at work (as presented in the simplified sketch below). During the creation of a branch the default for some reason got stuck as a parent to a branch, but still keeping a default branch separately (that is the default branch we're using going forward). This has left us with two default b... | 7,028 | 74,012 | 2022-09-03 13:38:20 | 12,074,523 | 11 | 2012-08-22 13:43:29 | 110,204 | 2012-08-22 13:43:29 | https://stackoverflow.com/q/12073576 | https://stackoverflow.com/a/12074523 | <p>Remember that the branch names are just labels put on the commits — there's nothing really broken about your graph. The branch names doesn't affect what happens when you merge, only the file content is important when merging.</p>
<p>That being said, you can close the extra head on <code>default</code>, the one belo... | <p>Remember that the branch names are just labels put on the commits — there's nothing really broken about your graph. The branch names doesn't affect what happens when you merge, only the file content is important when merging.</p> <p>That being said, you can close the extra head on <code>default</code>, the one belo... | 802, 53847 | branching-and-merging, mercurial | <h1>Stuck with two default branches in Mercurial after broken branch commits</h1>
<p>I've come across a difficulty at work (as presented in the simplified sketch below). During the creation of a branch the default for some reason got stuck as a parent to a branch, but still keeping a default branch separately (that is ... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,341 | mercurial | # Stuck with two default branches in Mercurial after broken branch commits
I've come across a difficulty at work (as presented in the simplified sketch below). During the creation of a branch the default for some reason got stuck as a parent to a branch, but still keeping a default branch separately (that is the defau... | Remember that the branch names are just labels put on the commits — there's nothing really broken about your graph. The branch names doesn't affect what happens when you merge, only the file content is important when merging.
That being said, you can close the extra head on `default`, the one below `branch1`:
```
$ h... |
5035531 | How is dvcs (git/mercurial) branching and merging support better than svn's? | 13 | 2011-02-17 22:30:47 | <p>Lots of articles on dvcs systems claim superior branching and merging support as one reason to move from svn to dvcs systems. How exactly do these systems do branching and merging differently that makes it better? </p>
| 1,149 | 118,703 | 2011-04-02 06:11:07 | 5,035,986 | 11 | 2011-02-17 23:23:57 | 152,948 | 2011-02-18 04:51:20 | https://stackoverflow.com/q/5035531 | https://stackoverflow.com/a/5035986 | <p>Historically, the difference between merge-tracking in git and svn was this: git has merge-tracking, and until version 1.5, svn didn't. At all. If you wanted to make a merge you had to always specify exactly what changes were to be merged, and if you merged one branch into another more than once, you would have to m... | <p>Historically, the difference between merge-tracking in git and svn was this: git has merge-tracking, and until version 1.5, svn didn't. At all. If you wanted to make a merge you had to always specify exactly what changes were to be merged, and if you merged one branch into another more than once, you would have to m... | 63, 119, 456, 802, 3346 | dvcs, git, mercurial, svn, version-control | <h1>How is dvcs (git/mercurial) branching and merging support better than svn's?</h1>
<p>Lots of articles on dvcs systems claim superior branching and merging support as one reason to move from svn to dvcs systems. How exactly do these systems do branching and merging differently that makes it better? </p>
| q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,342 | mercurial | # How is dvcs (git/mercurial) branching and merging support better than svn's?
Lots of articles on dvcs systems claim superior branching and merging support as one reason to move from svn to dvcs systems. How exactly do these systems do branching and merging differently that makes it better? | Historically, the difference between merge-tracking in git and svn was this: git has merge-tracking, and until version 1.5, svn didn't. At all. If you wanted to make a merge you had to always specify exactly what changes were to be merged, and if you merged one branch into another more than once, you would have to manu... |
4784265 | How to revert a Mercurial hg pull? | 13 | 2011-01-24 16:17:14 | <p>If you do an <code>hg pull</code> and then an <code>hg update</code> (or an <code>hg merge</code>), is there a way to back this out? Ie: revert your repository to the state prior to doing the <code>hg pull</code>? </p>
<p>I believe you can do <code>hg update -r n</code> where you would specify the changeset prior ... | 10,243 | 47,281 | 2025-07-03 08:30:50 | 4,784,620 | 11 | 2011-01-24 16:50:02 | 11,296 | 2017-06-16 12:49:20 | https://stackoverflow.com/q/4784265 | https://stackoverflow.com/a/4784620 | <p><code>hg strip</code> will remove revisions from a repository. Like all powerful commands, its dangerous, so be careful.</p>
<p><a href="https://www.mercurial-scm.org/wiki/StripExtension" rel="nofollow noreferrer">https://www.mercurial-scm.org/wiki/StripExtension</a></p>
<p>Also see:</p>
<p><a href="https://www.... | <p><code>hg strip</code> will remove revisions from a repository. Like all powerful commands, its dangerous, so be careful.</p> <p><a href="https://www.mercurial-scm.org/wiki/StripExtension" rel="nofollow noreferrer">https://www.mercurial-scm.org/wiki/StripExtension</a></p> <p>Also see:</p> <p><a href="https://www.... | 802 | mercurial | <h1>How to revert a Mercurial hg pull?</h1>
<p>If you do an <code>hg pull</code> and then an <code>hg update</code> (or an <code>hg merge</code>), is there a way to back this out? Ie: revert your repository to the state prior to doing the <code>hg pull</code>? </p>
<p>I believe you can do <code>hg update -r n</code> ... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,343 | mercurial | # How to revert a Mercurial hg pull?
If you do an `hg pull` and then an `hg update` (or an `hg merge`), is there a way to back this out? Ie: revert your repository to the state prior to doing the `hg pull`?
I believe you can do `hg update -r n` where you would specify the changeset prior to the pull as `n`. Though I'... | `hg strip` will remove revisions from a repository. Like all powerful commands, its dangerous, so be careful.
<https://www.mercurial-scm.org/wiki/StripExtension>
Also see:
<https://www.mercurial-scm.org/wiki/EditingHistory>
> If you catch your mistake immediately (or reasonably soon), you can just use ***hg strip R... |
2748552 | How to best configure a central repository/multiple central repositories for Mercurial? | 13 | 2010-05-01 01:41:13 | <p>I am new to Mercurial and trying to figure out if it could replace SVN. Everyone I work with has used SVN, CVS and VSS (shiver), so this could be quite a large change. I have been very interested after reading about its merge and branch capability, but have a few reservations.</p>
<p>We are currently on SVN, and ... | 3,942 | 8,426 | 2018-03-05 11:45:49 | 2,748,665 | 11 | 2010-05-01 02:36:29 | 8,992 | 2018-03-05 11:45:49 | https://stackoverflow.com/q/2748552 | https://stackoverflow.com/a/2748665 | <p>Mercurial supports "central repositories" just fine, but it does them by convention rather than fiat.</p>
<p>You need run only a single server to run all sixty repositories, and you wouldn't use <code>hg serve</code> for it. Instead you pick one of the production-quality methods from <a href="https://www.mercurial... | <p>Mercurial supports "central repositories" just fine, but it does them by convention rather than fiat.</p> <p>You need run only a single server to run all sixty repositories, and you wouldn't use <code>hg serve</code> for it. Instead you pick one of the production-quality methods from <a href="https://www.mercurial... | 456, 802, 3346, 8122 | dvcs, mercurial, tortoisehg, version-control | <h1>How to best configure a central repository/multiple central repositories for Mercurial?</h1>
<p>I am new to Mercurial and trying to figure out if it could replace SVN. Everyone I work with has used SVN, CVS and VSS (shiver), so this could be quite a large change. I have been very interested after reading about it... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,344 | mercurial | # How to best configure a central repository/multiple central repositories for Mercurial?
I am new to Mercurial and trying to figure out if it could replace SVN. Everyone I work with has used SVN, CVS and VSS (shiver), so this could be quite a large change. I have been very interested after reading about its merge and... | Mercurial supports "central repositories" just fine, but it does them by convention rather than fiat.
You need run only a single server to run all sixty repositories, and you wouldn't use `hg serve` for it. Instead you pick one of the production-quality methods from [among the publishing options](https://www.mercurial... |
2596150 | Mercurial Merging only certain changesets | 12 | 2010-04-07 21:41:31 | <p>Ok, so we recently converted from SVN to Mercurial.<br />
We are using TortoiseHG normally.<br /><br/>
In our one repository we have all of our projects, C++ / .NET / ASP. We have about 100 projects, all using common library projects.<br />
<br />
So it would be quite difficult task to create multiple repo's for eac... | 8,033 | 18,405 | 2017-06-19 11:01:49 | 4,699,866 | 11 | 2011-01-15 13:39:45 | 52,626 | 2017-06-19 11:01:49 | https://stackoverflow.com/q/2596150 | https://stackoverflow.com/a/4699866 | <p>There is a way to avoid this problem. You can <a href="http://codicesoftware.blogspot.com/2010/11/linus-on-branching.html" rel="nofollow noreferrer">make all your changes on separate feature branches from some baseline revision</a>, typically the tag of the last release or some other stable point <code>S</code>.</p>... | <p>There is a way to avoid this problem. You can <a href="http://codicesoftware.blogspot.com/2010/11/linus-on-branching.html" rel="nofollow noreferrer">make all your changes on separate feature branches from some baseline revision</a>, typically the tag of the last release or some other stable point <code>S</code>.</p>... | 802, 8122 | mercurial, tortoisehg | <h1>Mercurial Merging only certain changesets</h1>
<p>Ok, so we recently converted from SVN to Mercurial.<br />
We are using TortoiseHG normally.<br /><br/>
In our one repository we have all of our projects, C++ / .NET / ASP. We have about 100 projects, all using common library projects.<br />
<br />
So it would be qui... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,345 | mercurial | # Mercurial Merging only certain changesets
Ok, so we recently converted from SVN to Mercurial.
We are using TortoiseHG normally.
In our one repository we have all of our projects, C++ / .NET / ASP. We have about 100 projects, all using common library projects.
So it would be quite difficult task to create... | There is a way to avoid this problem. You can [make all your changes on separate feature branches from some baseline revision](http://codicesoftware.blogspot.com/2010/11/linus-on-branching.html), typically the tag of the last release or some other stable point `S`.
That way, your change `X` will be on its own branch w... |
4464585 | Simple way to revert .orig files? | 12 | 2010-12-16 19:24:47 | <p>I've just gone and accidentally run <code>hg revert *</code>. Does Mercurial come with a tool to move all the <code>.orig</code> files back into place?</p>
| 4,062 | 71,522 | 2019-02-01 07:52:48 | 4,464,623 | 11 | 2010-12-16 19:30:46 | 8,992 | 2010-12-16 19:30:46 | https://stackoverflow.com/q/4464585 | https://stackoverflow.com/a/4464623 | <p>No. If you're in bash you can always do:</p>
<pre><code>for thefile in *.orig ; do cp -v $thefile ${thefile%%.orig} ; done
</code></pre>
| <p>No. If you're in bash you can always do:</p> <pre><code>for thefile in *.orig ; do cp -v $thefile ${thefile%%.orig} ; done </code></pre> | 802 | mercurial | <h1>Simple way to revert .orig files?</h1>
<p>I've just gone and accidentally run <code>hg revert *</code>. Does Mercurial come with a tool to move all the <code>.orig</code> files back into place?</p>
| q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,346 | mercurial | # Simple way to revert .orig files?
I've just gone and accidentally run `hg revert *`. Does Mercurial come with a tool to move all the `.orig` files back into place? | No. If you're in bash you can always do:
```
for thefile in *.orig ; do cp -v $thefile ${thefile%%.orig} ; done
``` |
4341769 | How can I get mod_wsgi working on Mac? | 12 | 2010-12-03 01:45:54 | <p>I have been trying to install the latest version of mod_wsgi (3.3) since hours on my Mac. I'm on Snow Leopard and I have the versions of Apache (Apache/2.2.15) and Python 2.6.1 (r261:67515) that come with the system.</p>
<ol>
<li><p>I downloaded mod_wsgi-3.3.tar.gz from <a href="http://code.google.com/p/modwsgi/dow... | 20,024 | 504,715 | 2022-07-18 17:19:48 | 4,342,159 | 11 | 2010-12-03 03:22:21 | 188 | 2022-07-18 17:19:48 | https://stackoverflow.com/q/4341769 | https://stackoverflow.com/a/4342159 | <p>I use the <a href="https://brew.sh" rel="nofollow noreferrer">homebrew</a> installed version of <code>mod_wsgi</code>. That gives me a universal version of <code>mod_wsgi</code> that works with the vanilla apache.</p>
<pre><code>➔ file `brew list mod_wsgi`
/usr/local/Cellar/mod_wsgi/3.2/libexec/mod_wsgi.so: Mach-O ... | <p>I use the <a href="https://brew.sh" rel="nofollow noreferrer">homebrew</a> installed version of <code>mod_wsgi</code>. That gives me a universal version of <code>mod_wsgi</code> that works with the vanilla apache.</p> <pre><code>➔ file `brew list mod_wsgi` /usr/local/Cellar/mod_wsgi/3.2/libexec/mod_wsgi.so: Mach-O ... | 80, 369, 456, 802 | apache, macos, mercurial, version-control | <h1>How can I get mod_wsgi working on Mac?</h1>
<p>I have been trying to install the latest version of mod_wsgi (3.3) since hours on my Mac. I'm on Snow Leopard and I have the versions of Apache (Apache/2.2.15) and Python 2.6.1 (r261:67515) that come with the system.</p>
<ol>
<li><p>I downloaded mod_wsgi-3.3.tar.gz fr... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,347 | mercurial | # How can I get mod_wsgi working on Mac?
I have been trying to install the latest version of mod_wsgi (3.3) since hours on my Mac. I'm on Snow Leopard and I have the versions of Apache (Apache/2.2.15) and Python 2.6.1 (r261:67515) that come with the system.
1. I downloaded mod_wsgi-3.3.tar.gz from <http://code.google... | I use the [homebrew](https://brew.sh) installed version of `mod_wsgi`. That gives me a universal version of `mod_wsgi` that works with the vanilla apache.
```
➔ file `brew list mod_wsgi`
/usr/local/Cellar/mod_wsgi/3.2/libexec/mod_wsgi.so: Mach-O universal binary with 2 architectures
/usr/local/Cellar/mod_wsgi/3.2/lib... |
3625725 | Can I add custom colors to mercurial command templates? | 12 | 2010-09-02 09:22:24 | <p>I want to use customized template for <code>hg log</code> which looks like this:</p>
<pre><code>hg log --template '{node|short} {desc} [{date|age} by {author}]\'n --color=always
</code></pre>
<p>This in default terminal color is not very readable, so for instance I would like to make node red and desc green. How c... | 3,147 | 6,254 | 2018-02-22 10:40:16 | 3,632,262 | 11 | 2010-09-03 00:34:39 | 19,465 | 2018-02-22 10:40:16 | https://stackoverflow.com/q/3625725 | https://stackoverflow.com/a/3632262 | <p>AFAIK, there's no way to do this directly in Mercurial, but if you're on a Unix-y system you could use <a href="http://en.wikipedia.org/wiki/ANSI_escape_codes" rel="nofollow noreferrer">ANSI escape codes</a> to control the colors. For example:</p>
<pre><code>hg log --template "\x1B[31m{node|short} \x1B[32m{desc}\x... | <p>AFAIK, there's no way to do this directly in Mercurial, but if you're on a Unix-y system you could use <a href="http://en.wikipedia.org/wiki/ANSI_escape_codes" rel="nofollow noreferrer">ANSI escape codes</a> to control the colors. For example:</p> <pre><code>hg log --template "\x1B[31m{node|short} \x1B[32m{desc}\x... | 555, 802 | formatting, mercurial | <h1>Can I add custom colors to mercurial command templates?</h1>
<p>I want to use customized template for <code>hg log</code> which looks like this:</p>
<pre><code>hg log --template '{node|short} {desc} [{date|age} by {author}]\'n --color=always
</code></pre>
<p>This in default terminal color is not very readable, so... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,348 | mercurial | # Can I add custom colors to mercurial command templates?
I want to use customized template for `hg log` which looks like this:
```
hg log --template '{node|short} {desc} [{date|age} by {author}]\'n --color=always
```
This in default terminal color is not very readable, so for instance I would like to make node red ... | AFAIK, there's no way to do this directly in Mercurial, but if you're on a Unix-y system you could use [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_codes) to control the colors. For example:
```
hg log --template "\x1B[31m{node|short} \x1B[32m{desc}\x1B[0m\n"
```
will give you the `node` in red and th... |
7376915 | Recover lost files after commit and rollback in Mercurial. (Equivalent of git reflog?) | 11 | 2011-09-11 07:32:12 | <p>Commited work. Did a rollback when I wasn't on the tip of the repo. Lost files. Looking for git reflog equivalent to save my work.</p>
<p>Long:
So I finish work, then commit.</p>
<pre><code>$ hg commit -A
[...]
adding media/js/fbfriends.js
removing media/js/streams.js
adding media/js/templetizer.js
[...]
$ hg log
... | 4,283 | 486,315 | 2012-03-29 10:56:54 | 7,381,341 | 11 | 2011-09-11 21:24:19 | 8,992 | 2011-09-11 21:24:19 | https://stackoverflow.com/q/7376915 | https://stackoverflow.com/a/7381341 | <p>Sorry, they are gone.</p>
<p>The help summary for the <code>rollback</code> command is:</p>
<pre><code>roll back the last transaction (dangerous)
</code></pre>
<p>and goes on to say:</p>
<pre><code>This command should be used with care. There is only one level of
rollback, and there is no way to undo a rollback.... | <p>Sorry, they are gone.</p> <p>The help summary for the <code>rollback</code> command is:</p> <pre><code>roll back the last transaction (dangerous) </code></pre> <p>and goes on to say:</p> <pre><code>This command should be used with care. There is only one level of rollback, and there is no way to undo a rollback.... | 802 | mercurial | <h1>Recover lost files after commit and rollback in Mercurial. (Equivalent of git reflog?)</h1>
<p>Commited work. Did a rollback when I wasn't on the tip of the repo. Lost files. Looking for git reflog equivalent to save my work.</p>
<p>Long:
So I finish work, then commit.</p>
<pre><code>$ hg commit -A
[...]
adding m... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,350 | mercurial | # Recover lost files after commit and rollback in Mercurial. (Equivalent of git reflog?)
Commited work. Did a rollback when I wasn't on the tip of the repo. Lost files. Looking for git reflog equivalent to save my work.
Long:
So I finish work, then commit.
```
$ hg commit -A
[...]
adding media/js/fbfriends.js
removi... | Sorry, they are gone.
The help summary for the `rollback` command is:
```
roll back the last transaction (dangerous)
```
and goes on to say:
```
This command should be used with care. There is only one level of
rollback, and there is no way to undo a rollback. It will also restore the
dirstate at the time of the la... |
4188792 | Useful TortoiseHg extensions | 11 | 2010-11-15 21:02:37 | <p>Guys, could you please describe TortoiseHg extensions which comes with the installation package? What do these do and which you use on the daily basis? What are more useful?</p>
<p>This is the list from TortoiseHg v1.1.5 for Windows.</p>
<pre><code>[extensions]
; extensions shipped with Mercurial by default
;
;acl... | 4,396 | 188,475 | 2017-06-30 11:34:48 | 4,191,506 | 11 | 2010-11-16 05:41:24 | 235,698 | 2010-11-16 05:41:24 | https://stackoverflow.com/q/4188792 | https://stackoverflow.com/a/4191506 | <p>My personal favorites:</p>
<pre><code>graphlog ASCII graph next to changesets to visualize branching.
mq Handle local changes as a series of patches that can be edited.
purge Mass delete of unrevisioned files (and ignored files with --all).
rebase transplant a branch onto a different ch... | <p>My personal favorites:</p> <pre><code>graphlog ASCII graph next to changesets to visualize branching. mq Handle local changes as a series of patches that can be edited. purge Mass delete of unrevisioned files (and ignored files with --all). rebase transplant a branch onto a different ch... | 802, 8122 | mercurial, tortoisehg | <h1>Useful TortoiseHg extensions</h1>
<p>Guys, could you please describe TortoiseHg extensions which comes with the installation package? What do these do and which you use on the daily basis? What are more useful?</p>
<p>This is the list from TortoiseHg v1.1.5 for Windows.</p>
<pre><code>[extensions]
; extensions sh... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,351 | mercurial | # Useful TortoiseHg extensions
Guys, could you please describe TortoiseHg extensions which comes with the installation package? What do these do and which you use on the daily basis? What are more useful?
This is the list from TortoiseHg v1.1.5 for Windows.
```
[extensions]
; extensions shipped with Mercurial by def... | My personal favorites:
```
graphlog ASCII graph next to changesets to visualize branching.
mq Handle local changes as a series of patches that can be edited.
purge Mass delete of unrevisioned files (and ignored files with --all).
rebase transplant a branch onto a different changeset.
tra... |
3979122 | In Mercurial, is there any way (aside from "Cherry picking") to push a changeset without also pushing changesets associated with a different head? | 11 | 2010-10-20 14:47:14 | <p>In the answer to <a href="https://stackoverflow.com/questions/2768112/distributed-source-control-pushing-individual-changesets">this question</a>, <a href="https://stackoverflow.com/users/8992/ry4an">Ry4an</a> states that "you cannot push Changeset2 without pushing Changeset1".</p>
<p>This certainly makes sense if ... | 619 | 119,286 | 2018-02-27 14:46:18 | 3,979,215 | 11 | 2010-10-20 14:56:16 | 19,465 | 2010-10-20 14:56:16 | https://stackoverflow.com/q/3979122 | https://stackoverflow.com/a/3979215 | <p>If you're using <code>hg push</code> without any command-line option, it will try to push every changeset in your local repository that doesn't exist in the remote repository. If you use the <code>-r</code> / <code>--rev</code> option, it will just push that revision and its ancestors. In your case, you would need... | <p>If you're using <code>hg push</code> without any command-line option, it will try to push every changeset in your local repository that doesn't exist in the remote repository. If you use the <code>-r</code> / <code>--rev</code> option, it will just push that revision and its ancestors. In your case, you would need... | 456, 802, 3346 | dvcs, mercurial, version-control | <h1>In Mercurial, is there any way (aside from "Cherry picking") to push a changeset without also pushing changesets associated with a different head?</h1>
<p>In the answer to <a href="https://stackoverflow.com/questions/2768112/distributed-source-control-pushing-individual-changesets">this question</a>, <a href="https... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,352 | mercurial | # In Mercurial, is there any way (aside from "Cherry picking") to push a changeset without also pushing changesets associated with a different head?
In the answer to [this question](https://stackoverflow.com/questions/2768112/distributed-source-control-pushing-individual-changesets), [Ry4an](https://stackoverflow.com/... | If you're using `hg push` without any command-line option, it will try to push every changeset in your local repository that doesn't exist in the remote repository. If you use the `-r` / `--rev` option, it will just push that revision and its ancestors. In your case, you would need to do:
```
hg push --rev Changeset2
... |
1048628 | .hgignore syntax for ignoring only files, not directories? | 11 | 2009-06-26 11:30:40 | <p>I have a problem which I can't seem to understand. I'm using TortoiseHg (version 0.7.5) on Windows but on Linux I have the same problem. Here it is:</p>
<p>My <code>.hgignore</code> file:</p>
<pre><code>syntax: regexp
^[^\\/]+$
</code></pre>
<p>What I'm trying to achieve is to add to the ignore list the files whi... | 5,070 | 13,136 | 2012-02-24 19:55:13 | 1,063,236 | 11 | 2009-06-30 11:47:50 | 110,204 | 2011-12-15 10:24:21 | https://stackoverflow.com/q/1048628 | https://stackoverflow.com/a/1063236 | <p>I relayed this question in <code>#mercurial</code> on irc.freenode.net and the response was that you cannot distinguish between files and directories — the directory is matched without the slash that you're searching for in your regexp.</p>
<p>However, if you can assume that your directories will never contain a fu... | <p>I relayed this question in <code>#mercurial</code> on irc.freenode.net and the response was that you cannot distinguish between files and directories — the directory is matched without the slash that you're searching for in your regexp.</p> <p>However, if you can assume that your directories will never contain a fu... | 18, 802, 3346, 31419 | dvcs, hgignore, mercurial, regex | <h1>.hgignore syntax for ignoring only files, not directories?</h1>
<p>I have a problem which I can't seem to understand. I'm using TortoiseHg (version 0.7.5) on Windows but on Linux I have the same problem. Here it is:</p>
<p>My <code>.hgignore</code> file:</p>
<pre><code>syntax: regexp
^[^\\/]+$
</code></pre>
<p>W... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,353 | mercurial | # .hgignore syntax for ignoring only files, not directories?
I have a problem which I can't seem to understand. I'm using TortoiseHg (version 0.7.5) on Windows but on Linux I have the same problem. Here it is:
My `.hgignore` file:
```
syntax: regexp
^[^\\/]+$
```
What I'm trying to achieve is to add to the ignore l... | I relayed this question in `#mercurial` on irc.freenode.net and the response was that you cannot distinguish between files and directories — the directory is matched without the slash that you're searching for in your regexp.
However, if you can assume that your directories will never contain a full-stop `.`, but your... |
25753247 | How can I do "hg shelf apply"? | 10 | 2014-09-09 20:42:34 | <p>I would like to copy some changes from my Mercurial shelf to my working directory, leaving an unchanged copy in the shelf. </p>
<p>Git would let me do that with <code>git stash apply</code>, however I can't see a way to get TortoiseHg to let me do the same.</p>
<p>Is there any way to retrieve to <strong>copy</str... | 2,795 | 7,255 | 2022-01-07 12:58:28 | 25,758,905 | 11 | 2014-09-10 06:42:14 | 960,558 | 2022-01-07 12:58:28 | https://stackoverflow.com/q/25753247 | https://stackoverflow.com/a/25758905 | <ol>
<li><p>unshelve command has option <code>--keep</code> (see <a href="http://www.selenic.com/mercurial/hg.1.html#shelve" rel="nofollow noreferrer"><code>hg help shelve</code></a>)</p>
</li>
<li><p>Shelve extension stores shelves in <code>.hg/shelves</code>. If you stored named shelf, you can copy file, named as she... | <ol> <li><p>unshelve command has option <code>--keep</code> (see <a href="http://www.selenic.com/mercurial/hg.1.html#shelve" rel="nofollow noreferrer"><code>hg help shelve</code></a>)</p> </li> <li><p>Shelve extension stores shelves in <code>.hg/shelves</code>. If you stored named shelf, you can copy file, named as she... | 802, 8122 | mercurial, tortoisehg | <h1>How can I do "hg shelf apply"?</h1>
<p>I would like to copy some changes from my Mercurial shelf to my working directory, leaving an unchanged copy in the shelf. </p>
<p>Git would let me do that with <code>git stash apply</code>, however I can't see a way to get TortoiseHg to let me do the same.</p>
<p>Is there ... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,354 | mercurial | # How can I do "hg shelf apply"?
I would like to copy some changes from my Mercurial shelf to my working directory, leaving an unchanged copy in the shelf.
Git would let me do that with `git stash apply`, however I can't see a way to get TortoiseHg to let me do the same.
Is there any way to retrieve to **copy** the ... | 1. unshelve command has option `--keep` (see [`hg help shelve`](http://www.selenic.com/mercurial/hg.1.html#shelve))
2. Shelve extension stores shelves in `.hg/shelves`. If you stored named shelf, you can copy file, named as shelf, before `hg unshelve NAME` |
11093544 | How do I only commit a subrepo's changes? | 10 | 2012-06-19 02:16:16 | <p>I have a master repo, which has some changes I do not want to commit.</p>
<p>I have a subrepo, which has changes <em>that have already been committed</em>.</p>
<p>I want to commit the changes subrepo revision in my master repo, without committing the changes to the files in the master repo.</p>
<p>I cannot seem t... | 3,848 | 188 | 2013-11-26 19:24:38 | 11,102,006 | 11 | 2012-06-19 13:29:38 | 8,992 | 2013-11-26 19:24:38 | https://stackoverflow.com/q/11093544 | https://stackoverflow.com/a/11102006 | <p>Pass the name of the subrepo itself to commit and Mercurial will update <code>.hgsubstate</code> and commit it.</p>
<pre><code>ry4an@four:~$ hg init main
ry4an@four:~$ cd main
ry4an@four:~/main$ hg init sub
ry4an@four:~/main$ echo sub = sub > .hgsub
ry4an@four:~/main$ hg add .hgsub
ry4an@four:~/main$ hg commit
r... | <p>Pass the name of the subrepo itself to commit and Mercurial will update <code>.hgsubstate</code> and commit it.</p> <pre><code>ry4an@four:~$ hg init main ry4an@four:~$ cd main ry4an@four:~/main$ hg init sub ry4an@four:~/main$ echo sub = sub > .hgsub ry4an@four:~/main$ hg add .hgsub ry4an@four:~/main$ hg commit r... | 802, 49387 | mercurial, subrepos | <h1>How do I only commit a subrepo's changes?</h1>
<p>I have a master repo, which has some changes I do not want to commit.</p>
<p>I have a subrepo, which has changes <em>that have already been committed</em>.</p>
<p>I want to commit the changes subrepo revision in my master repo, without committing the changes to th... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,355 | mercurial | # How do I only commit a subrepo's changes?
I have a master repo, which has some changes I do not want to commit.
I have a subrepo, which has changes *that have already been committed*.
I want to commit the changes subrepo revision in my master repo, without committing the changes to the files in the master repo.
I... | Pass the name of the subrepo itself to commit and Mercurial will update `.hgsubstate` and commit it.
```
ry4an@four:~$ hg init main
ry4an@four:~$ cd main
ry4an@four:~/main$ hg init sub
ry4an@four:~/main$ echo sub = sub > .hgsub
ry4an@four:~/main$ hg add .hgsub
ry4an@four:~/main$ hg commit
ry4an@four:~/main$ cd sub
ry4... |
11349555 | is there a way to search a set of diffs for a particular string for a file? | 9 | 2012-07-05 17:35:39 | <p>I'd like to search the diffs of one file (ideally a set of files) for a specified set of revisions (or all). I'm looking for a diff report that is text searchable. I've got this: </p>
<p><code>hg diff -r 0:47131 .\TheFile.cs | grep 'theSearch' -Context 50</code></p>
<p>OK, that works well enough, but deciding how... | 1,856 | 30,946 | 2017-03-29 16:25:56 | 11,350,872 | 11 | 2012-07-05 19:03:54 | 63,147 | 2012-07-05 19:03:54 | https://stackoverflow.com/q/11349555 | https://stackoverflow.com/a/11350872 | <p>You can use <a href="http://www.selenic.com/hg/help/grep" rel="noreferrer"><code>hg grep</code></a> to search the entire repo history.</p>
<p>For example:</p>
<pre><code>hg grep --all --include .\TheFile.cs 'theSearch'
</code></pre>
<p>will find all instances of <code>'theSearch'</code> in every revision of the r... | <p>You can use <a href="http://www.selenic.com/hg/help/grep" rel="noreferrer"><code>hg grep</code></a> to search the entire repo history.</p> <p>For example:</p> <pre><code>hg grep --all --include .\TheFile.cs 'theSearch' </code></pre> <p>will find all instances of <code>'theSearch'</code> in every revision of the r... | 802 | mercurial | <h1>is there a way to search a set of diffs for a particular string for a file?</h1>
<p>I'd like to search the diffs of one file (ideally a set of files) for a specified set of revisions (or all). I'm looking for a diff report that is text searchable. I've got this: </p>
<p><code>hg diff -r 0:47131 .\TheFile.cs | gre... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,356 | mercurial | # is there a way to search a set of diffs for a particular string for a file?
I'd like to search the diffs of one file (ideally a set of files) for a specified set of revisions (or all). I'm looking for a diff report that is text searchable. I've got this:
`hg diff -r 0:47131 .\TheFile.cs | grep 'theSearch' -Context ... | You can use [`hg grep`](http://www.selenic.com/hg/help/grep) to search the entire repo history.
For example:
```
hg grep --all --include .\TheFile.cs 'theSearch'
```
will find all instances of `'theSearch'` in every revision of the repo. Without the `--all` flag, it stops at the first revision that includes the stri... |
11001666 | what does 'skipping ancestor revision' mean when using 'graft'? | 9 | 2012-06-12 17:23:44 | <p>I'm using the <code>graft</code> command to pull 4 changesets from a BranchA into BranchB. When I do, some are grafted and some are not: </p>
<pre><code>PS D:\Dev\ProjectAlpha> hg graft 5f403abb2b24
skipping ancestor revision 15911
PS D:\Dev\ProjectAlpha> hg graft 535ff712c5a3
grafting revision 15925
PS D:\De... | 4,098 | 30,946 | 2012-06-12 17:53:29 | 11,002,096 | 11 | 2012-06-12 17:53:29 | 8,992 | 2012-06-12 17:53:29 | https://stackoverflow.com/q/11001666 | https://stackoverflow.com/a/11002096 | <p>From <code>hg help glossary</code>:</p>
<pre><code>Ancestor
Any changeset that can be reached by an unbroken chain of parent
changesets from a given changeset. More precisely, the ancestors of a
changeset can be defined by two properties: a parent of a changeset is
an ancestor, and a parent of an an... | <p>From <code>hg help glossary</code>:</p> <pre><code>Ancestor Any changeset that can be reached by an unbroken chain of parent changesets from a given changeset. More precisely, the ancestors of a changeset can be defined by two properties: a parent of a changeset is an ancestor, and a parent of an an... | 802 | mercurial | <h1>what does 'skipping ancestor revision' mean when using 'graft'?</h1>
<p>I'm using the <code>graft</code> command to pull 4 changesets from a BranchA into BranchB. When I do, some are grafted and some are not: </p>
<pre><code>PS D:\Dev\ProjectAlpha> hg graft 5f403abb2b24
skipping ancestor revision 15911
PS D:\De... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,357 | mercurial | # what does 'skipping ancestor revision' mean when using 'graft'?
I'm using the `graft` command to pull 4 changesets from a BranchA into BranchB. When I do, some are grafted and some are not:
```
PS D:\Dev\ProjectAlpha> hg graft 5f403abb2b24
skipping ancestor revision 15911
PS D:\Dev\ProjectAlpha> hg graft 535ff712c5... | From `hg help glossary`:
```
Ancestor
Any changeset that can be reached by an unbroken chain of parent
changesets from a given changeset. More precisely, the ancestors of a
changeset can be defined by two properties: a parent of a changeset is
an ancestor, and a parent of an ancestor is an ancestor. Se... |
4786435 | How to mark file as resolved using local/remote version | 9 | 2011-01-24 19:52:19 | <p>I pulled one revision and tried to merge but hg couldn't make the merge. I know the right version is the local (or the remote...), so I do this:</p>
<pre><code>hg heads
hg revert file_path --rev right_rev
hg resolve -m file_path
...
</code></pre>
<p>Is there an easier way to do this?
Yes I know I should open the f... | 5,317 | 534,006 | 2021-01-17 06:45:47 | 4,789,905 | 11 | 2011-01-25 04:13:52 | 19,465 | 2011-01-25 04:13:52 | https://stackoverflow.com/q/4786435 | https://stackoverflow.com/a/4789905 | <p>With newer versions of Mercurial (1.7.0 and later), you can use <code>hg merge --tool internal:local</code> to keep the local version (i.e. the one that's in your working directory), or <code>hg merge --tool internal:other</code> to keep the other version. The <code>--tool</code> option was introduced as a shorthan... | <p>With newer versions of Mercurial (1.7.0 and later), you can use <code>hg merge --tool internal:local</code> to keep the local version (i.e. the one that's in your working directory), or <code>hg merge --tool internal:other</code> to keep the other version. The <code>--tool</code> option was introduced as a shorthan... | 802 | mercurial | <h1>How to mark file as resolved using local/remote version</h1>
<p>I pulled one revision and tried to merge but hg couldn't make the merge. I know the right version is the local (or the remote...), so I do this:</p>
<pre><code>hg heads
hg revert file_path --rev right_rev
hg resolve -m file_path
...
</code></pre>
<p>... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,358 | mercurial | # How to mark file as resolved using local/remote version
I pulled one revision and tried to merge but hg couldn't make the merge. I know the right version is the local (or the remote...), so I do this:
```
hg heads
hg revert file_path --rev right_rev
hg resolve -m file_path
...
```
Is there an easier way to do this... | With newer versions of Mercurial (1.7.0 and later), you can use `hg merge --tool internal:local` to keep the local version (i.e. the one that's in your working directory), or `hg merge --tool internal:other` to keep the other version. The `--tool` option was introduced as a shorthand for `--config ui.merge=internal:loc... |
10200177 | What is the two numbers in Mercurial changeset ID? | 8 | 2012-04-17 22:32:14 | <pre><code>$ hg heads
changeset: 211:746a4ab8b3e3
</code></pre>
<p>What is <code>211</code> and <code>746a4ab8b3e3</code> respectively?</p>
<p>When I do <code>hg revert -r REV</code>, what should <code>REV</code> be? <code>211</code> or <code>746a4ab8b3e3</code>, or <code>211:746a4ab8b3e3</code>? </p>
| 1,109 | 1,150,778 | 2018-02-22 12:56:44 | 10,200,228 | 11 | 2012-04-17 22:36:56 | null | 2018-02-22 12:56:44 | https://stackoverflow.com/q/10200177 | https://stackoverflow.com/a/10200228 | <p><code>211</code> is the <em><a href="https://www.mercurial-scm.org/wiki/RevisionNumber" rel="nofollow noreferrer">local revision number</a></em> and <code>746a4ab8b3e3</code> is the <em>short <a href="https://www.mercurial-scm.org/wiki/Nodeid" rel="nofollow noreferrer">Node ID</a></em>. The <em>local</em> revision w... | <p><code>211</code> is the <em><a href="https://www.mercurial-scm.org/wiki/RevisionNumber" rel="nofollow noreferrer">local revision number</a></em> and <code>746a4ab8b3e3</code> is the <em>short <a href="https://www.mercurial-scm.org/wiki/Nodeid" rel="nofollow noreferrer">Node ID</a></em>. The <em>local</em> revision w... | 802 | mercurial | <h1>What is the two numbers in Mercurial changeset ID?</h1>
<pre><code>$ hg heads
changeset: 211:746a4ab8b3e3
</code></pre>
<p>What is <code>211</code> and <code>746a4ab8b3e3</code> respectively?</p>
<p>When I do <code>hg revert -r REV</code>, what should <code>REV</code> be? <code>211</code> or <code>746a4ab8b3e3... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,359 | mercurial | # What is the two numbers in Mercurial changeset ID?
```
$ hg heads
changeset: 211:746a4ab8b3e3
```
What is `211` and `746a4ab8b3e3` respectively?
When I do `hg revert -r REV`, what should `REV` be? `211` or `746a4ab8b3e3`, or `211:746a4ab8b3e3`? | `211` is the *[local revision number](https://www.mercurial-scm.org/wiki/RevisionNumber)* and `746a4ab8b3e3` is the *short [Node ID](https://www.mercurial-scm.org/wiki/Nodeid)*. The *local* revision will [likely] *differ* between repositories for the same Node ID and is not useful to communicate revisions. The form wit... |
4045887 | MacVim and Mercurial check-in | 8 | 2010-10-28 18:10:57 | <p>I'm trying to use MacVim as a default editor (on my Mac, obviously). I'd like to have MacVim to edit commit messages when I <code>hg ci</code>. Unfortunately when I do so (either by setting <code>EDITOR=mvim</code> or <code>alias vi='mvim'</code>) MacVim pops up with an empty message (i.e. none of the boilerplate in... | 796 | 19,212 | 2011-06-13 21:32:31 | 4,045,958 | 11 | 2010-10-28 18:19:38 | 72,508 | 2010-10-28 18:19:38 | https://stackoverflow.com/q/4045887 | https://stackoverflow.com/a/4045958 | <p>Set <code>EDITOR='mvim -f'</code>, per the tip from the <a href="http://github.com/b4winckler/macvim/wiki/FAQ" rel="noreferrer">FAQ</a> for making it work with Git:</p>
<blockquote>
<p><strong>How can I use MacVim to edit Git commit messages?</strong></p>
<p>Add the following line to the file <code>~/.profile</code>... | <p>Set <code>EDITOR='mvim -f'</code>, per the tip from the <a href="http://github.com/b4winckler/macvim/wiki/FAQ" rel="noreferrer">FAQ</a> for making it work with Git:</p> <blockquote> <p><strong>How can I use MacVim to edit Git commit messages?</strong></p> <p>Add the following line to the file <code>~/.profile</code>... | 369, 802, 29635 | macos, macvim, mercurial | <h1>MacVim and Mercurial check-in</h1>
<p>I'm trying to use MacVim as a default editor (on my Mac, obviously). I'd like to have MacVim to edit commit messages when I <code>hg ci</code>. Unfortunately when I do so (either by setting <code>EDITOR=mvim</code> or <code>alias vi='mvim'</code>) MacVim pops up with an empty m... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,360 | mercurial | # MacVim and Mercurial check-in
I'm trying to use MacVim as a default editor (on my Mac, obviously). I'd like to have MacVim to edit commit messages when I `hg ci`. Unfortunately when I do so (either by setting `EDITOR=mvim` or `alias vi='mvim'`) MacVim pops up with an empty message (i.e. none of the boilerplate in th... | Set `EDITOR='mvim -f'`, per the tip from the [FAQ](http://github.com/b4winckler/macvim/wiki/FAQ) for making it work with Git:
> **How can I use MacVim to edit Git commit messages?**
>
> Add the following line to the file `~/.profile`:
>
> ```
> export EDITOR='mvim -f -c "au VimLeave * !open -a Terminal"'
> ```
>
> The... |
3547274 | Refer to a mercurial revision relative to a named revision | 8 | 2010-08-23 11:59:39 | <p>In git, you can do refer to revisions by something like <code>master^^</code>, meaning two revisions before master. Can you do the same in Mercurial in some way (or with some extension)? For example, if I want to do "the revision before tip", something like <code>tip^</code>.</p>
<p>edit: Rafa mentions <code>hg par... | 2,902 | 104,021 | 2010-08-25 22:17:38 | 3,547,662 | 11 | 2010-08-23 12:49:34 | 19,465 | 2010-08-23 12:55:36 | https://stackoverflow.com/q/3547274 | https://stackoverflow.com/a/3547662 | <p>For commands that have options to specify a revision, use <code>-r -2</code> for the revision prior to the tip, <code>-r -3</code> for the revision before that, etc.</p>
<p>From <code>hg help revs</code>:</p>
<blockquote>
<p>A plain integer is treated as a revision number. Negative integers are treated as sequen... | <p>For commands that have options to specify a revision, use <code>-r -2</code> for the revision prior to the tip, <code>-r -3</code> for the revision before that, etc.</p> <p>From <code>hg help revs</code>:</p> <blockquote> <p>A plain integer is treated as a revision number. Negative integers are treated as sequen... | 802, 1555 | mercurial, revision | <h1>Refer to a mercurial revision relative to a named revision</h1>
<p>In git, you can do refer to revisions by something like <code>master^^</code>, meaning two revisions before master. Can you do the same in Mercurial in some way (or with some extension)? For example, if I want to do "the revision before tip", someth... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,361 | mercurial | # Refer to a mercurial revision relative to a named revision
In git, you can do refer to revisions by something like `master^^`, meaning two revisions before master. Can you do the same in Mercurial in some way (or with some extension)? For example, if I want to do "the revision before tip", something like `tip^`.
ed... | For commands that have options to specify a revision, use `-r -2` for the revision prior to the tip, `-r -3` for the revision before that, etc.
From `hg help revs`:
> A plain integer is treated as a revision number. Negative integers are treated as sequential offsets from the tip, with -1 denoting the tip, -2 denotin... |
2511704 | Is there a recommended command for "hg bisect --command"? | 8 | 2010-03-24 21:56:12 | <p>I have an emergent bug that I've got to track down tomorrow. I know a previous hg revision which was good so I'm thinking about using hg bisect.</p>
<p>However, I'm on Windows and don't want to get into DOS scripting.</p>
<p>Ideally, I'd be able to write a Python unit test and have hg bisect use that. This is my f... | 1,342 | 268,075 | 2010-06-07 14:38:23 | 2,513,749 | 11 | 2010-03-25 07:37:08 | 268,075 | 2010-03-25 07:37:08 | https://stackoverflow.com/q/2511704 | https://stackoverflow.com/a/2513749 | <p>Thanks to all, especially to Will McCutchen.
The solution that worked best is below.</p>
<p>bisector.py</p>
<pre><code>#!/usr/bin/env python
import unittest
class TestCase(unittest.TestCase):
def test(self):
# Raise an assertion error to mark the revision as bad
pass
if '__main__' == __nam... | <p>Thanks to all, especially to Will McCutchen. The solution that worked best is below.</p> <p>bisector.py</p> <pre><code>#!/usr/bin/env python import unittest class TestCase(unittest.TestCase): def test(self): # Raise an assertion error to mark the revision as bad pass if '__main__' == __nam... | 16, 802 | mercurial, python | <h1>Is there a recommended command for "hg bisect --command"?</h1>
<p>I have an emergent bug that I've got to track down tomorrow. I know a previous hg revision which was good so I'm thinking about using hg bisect.</p>
<p>However, I'm on Windows and don't want to get into DOS scripting.</p>
<p>Ideally, I'd be able to... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,362 | mercurial | # Is there a recommended command for "hg bisect --command"?
I have an emergent bug that I've got to track down tomorrow. I know a previous hg revision which was good so I'm thinking about using hg bisect.
However, I'm on Windows and don't want to get into DOS scripting.
Ideally, I'd be able to write a Python unit te... | Thanks to all, especially to Will McCutchen.
The solution that worked best is below.
bisector.py
```
#!/usr/bin/env python
import unittest
class TestCase(unittest.TestCase):
def test(self):
# Raise an assertion error to mark the revision as bad
pass
if '__main__' == __name__:
unittest.mai... |
1927093 | How can I extract all changed files of a changeset in Mercurial? | 8 | 2009-12-18 08:53:54 | <p>Until recently we have been using SVN for all projects of our web studio, and there is a very convenient feature present in several clients like Subversive and TortoiseSVN that can extract all files that have been changed in a certain revision.</p>
<p>Is there a way to do it in Mercurial? I don't care if it's done ... | 6,530 | 123,564 | 2009-12-18 19:41:41 | 1,930,287 | 11 | 2009-12-18 19:41:41 | 8,992 | 2009-12-18 19:41:41 | https://stackoverflow.com/q/1927093 | https://stackoverflow.com/a/1930287 | <p>Building on Jerome's answer this will get you the <strong>copies of the files</strong> that changed in revision 4:</p>
<pre><code>hg archive --type files --rev 4 -I $(hg log -r 4 --template {files} | sed 's/ / -I /g') ~/changedfiles
</code></pre>
<p>That puts all the files that changed into revision four into a ne... | <p>Building on Jerome's answer this will get you the <strong>copies of the files</strong> that changed in revision 4:</p> <pre><code>hg archive --type files --rev 4 -I $(hg log -r 4 --template {files} | sed 's/ / -I /g') ~/changedfiles </code></pre> <p>That puts all the files that changed into revision four into a ne... | 63, 456, 802, 3311, 20848 | changeset, mercurial, subversive, svn, version-control | <h1>How can I extract all changed files of a changeset in Mercurial?</h1>
<p>Until recently we have been using SVN for all projects of our web studio, and there is a very convenient feature present in several clients like Subversive and TortoiseSVN that can extract all files that have been changed in a certain revision... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,363 | mercurial | # How can I extract all changed files of a changeset in Mercurial?
Until recently we have been using SVN for all projects of our web studio, and there is a very convenient feature present in several clients like Subversive and TortoiseSVN that can extract all files that have been changed in a certain revision.
Is the... | Building on Jerome's answer this will get you the **copies of the files** that changed in revision 4:
```
hg archive --type files --rev 4 -I $(hg log -r 4 --template {files} | sed 's/ / -I /g') ~/changedfiles
```
That puts all the files that changed into revision four into a newly created directory named changedfiles... |
1663643 | Exporting an unversioned copy of a tag from Mercurial | 8 | 2009-11-02 20:56:22 | <p>I'm fairly comfortable with SVN, but have been looking at Mercurial for it's ability to perform offline commits. Something I haven't been able to figure out is how to do an unversioned export an old tagged rev. In SVN the tags would just live in a \tags folder in the repo, then I could just export something from t... | 1,409 | 194,586 | 2009-11-03 00:08:10 | 1,663,692 | 11 | 2009-11-02 21:04:46 | 8,992 | 2009-11-03 00:08:10 | https://stackoverflow.com/q/1663643 | https://stackoverflow.com/a/1663692 | <p>Use 'hg archive'. </p>
<pre><code> hg archive [OPTION]... DEST
create an unversioned archive of a repository revision
By default, the revision used is the parent of the working
directory; use -r/--rev to specify a different revision.
To specify the type of archive to create, use -t/--type. Valid
... | <p>Use 'hg archive'. </p> <pre><code> hg archive [OPTION]... DEST create an unversioned archive of a repository revision By default, the revision used is the parent of the working directory; use -r/--rev to specify a different revision. To specify the type of archive to create, use -t/--type. Valid ... | 63, 802, 27566 | mercurial, svn, svn-export | <h1>Exporting an unversioned copy of a tag from Mercurial</h1>
<p>I'm fairly comfortable with SVN, but have been looking at Mercurial for it's ability to perform offline commits. Something I haven't been able to figure out is how to do an unversioned export an old tagged rev. In SVN the tags would just live in a \tag... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,364 | mercurial | # Exporting an unversioned copy of a tag from Mercurial
I'm fairly comfortable with SVN, but have been looking at Mercurial for it's ability to perform offline commits. Something I haven't been able to figure out is how to do an unversioned export an old tagged rev. In SVN the tags would just live in a \tags folder in... | Use 'hg archive'.
```
hg archive [OPTION]... DEST
create an unversioned archive of a repository revision
By default, the revision used is the parent of the working
directory; use -r/--rev to specify a different revision.
To specify the type of archive to create, use -t/--type. Valid
types are:
... |
8930918 | Get tip changeset of remote Mercurial repository | 7 | 2012-01-19 17:56:02 | <p>My .hg/hgrc file has the line:</p>
<p><code>default = http://some/remote/repository</code></p>
<p>Is there a quick command to print the tip revision of that repository (which may or may not be inside my local repository)?</p>
| 2,018 | 505,308 | 2016-08-23 07:44:01 | 8,931,011 | 11 | 2012-01-19 18:02:19 | 110,204 | 2012-01-19 18:02:19 | https://stackoverflow.com/q/8930918 | https://stackoverflow.com/a/8931011 | <p>You can use the <a href="http://www.selenic.com/mercurial/hg.1.html#identify">identify command</a> like this:</p>
<pre><code>$ hg identify $(hg paths default)
</code></pre>
<p>This is one of the few commands that can operate on a remote repository. If you need more information about the remote repository, then I s... | <p>You can use the <a href="http://www.selenic.com/mercurial/hg.1.html#identify">identify command</a> like this:</p> <pre><code>$ hg identify $(hg paths default) </code></pre> <p>This is one of the few commands that can operate on a remote repository. If you need more information about the remote repository, then I s... | 802, 3346 | dvcs, mercurial | <h1>Get tip changeset of remote Mercurial repository</h1>
<p>My .hg/hgrc file has the line:</p>
<p><code>default = http://some/remote/repository</code></p>
<p>Is there a quick command to print the tip revision of that repository (which may or may not be inside my local repository)?</p>
| q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,365 | mercurial | # Get tip changeset of remote Mercurial repository
My .hg/hgrc file has the line:
`default = http://some/remote/repository`
Is there a quick command to print the tip revision of that repository (which may or may not be inside my local repository)? | You can use the [identify command](http://www.selenic.com/mercurial/hg.1.html#identify) like this:
```
$ hg identify $(hg paths default)
```
This is one of the few commands that can operate on a remote repository. If you need more information about the remote repository, then I suggest you take a look at `hg incoming... |
8017119 | Why is .hgignore being ignored? | 7 | 2011-11-05 00:01:05 | <p>I am very new to Hg so please excuse my ignorance here...</p>
<p>I am using Mercurial and TortoiseHg in Windows 7. I have a repository created that has the following folder structure:</p>
<pre><code>-- My repo dir
|
|--- .hg
|--- .hgignore
|--- File 1
|--- File 2
|--- ...
</code></pre>
<p>My database data files live... | 5,893 | 160,830 | 2011-11-08 04:33:44 | 8,017,148 | 11 | 2011-11-05 00:05:42 | 949,853 | 2011-11-05 00:05:42 | https://stackoverflow.com/q/8017119 | https://stackoverflow.com/a/8017148 | <p>Maybe mercurial is already tracking those files. If files are already tracked then .hgignore does not have any effect. Try:</p>
<pre><code>hg forget MyDatabase\.mdf MyDatabase\_log\.ldf
</code></pre>
<p>Then edit .hgignore to exclude those files and commit.</p>
<p>That should solve it.</p>
| <p>Maybe mercurial is already tracking those files. If files are already tracked then .hgignore does not have any effect. Try:</p> <pre><code>hg forget MyDatabase\.mdf MyDatabase\_log\.ldf </code></pre> <p>Then edit .hgignore to exclude those files and commit.</p> <p>That should solve it.</p> | 802, 8122 | mercurial, tortoisehg | <h1>Why is .hgignore being ignored?</h1>
<p>I am very new to Hg so please excuse my ignorance here...</p>
<p>I am using Mercurial and TortoiseHg in Windows 7. I have a repository created that has the following folder structure:</p>
<pre><code>-- My repo dir
|
|--- .hg
|--- .hgignore
|--- File 1
|--- File 2
|--- ...
</c... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,366 | mercurial | # Why is .hgignore being ignored?
I am very new to Hg so please excuse my ignorance here...
I am using Mercurial and TortoiseHg in Windows 7. I have a repository created that has the following folder structure:
```
-- My repo dir
|
|--- .hg
|--- .hgignore
|--- File 1
|--- File 2
|--- ...
```
My database data files ... | Maybe mercurial is already tracking those files. If files are already tracked then .hgignore does not have any effect. Try:
```
hg forget MyDatabase\.mdf MyDatabase\_log\.ldf
```
Then edit .hgignore to exclude those files and commit.
That should solve it. |
5672148 | Pushing multiple heads with Mercurial | 7 | 2011-04-15 03:40:10 | <p>For a workflow like this, </p>
<pre><code>$hg clone <bitbucket repo>
... fix, fix ...
$hg commit -m "good comment!"
$hg bookmark stable
...new fix on stable...
$hg commit -m "new fix on stable bookmark"
$hg bookmark experimental --> I would like to defer merging until its stable.
... hack hack more hack... | 4,062 | 388,889 | 2011-04-15 04:48:02 | 5,672,501 | 11 | 2011-04-15 04:48:02 | 8,992 | 2011-04-15 04:48:02 | https://stackoverflow.com/q/5672148 | https://stackoverflow.com/a/5672501 | <p>What you're doing is just fine. The "don't use <code>push -f</code>" is advice for people who have pulled, have multiple heads, and don't know what that means.</p>
<p>Bookmarks won't show up on bitbucket. The changesets will show up as heads, of course, but the boomarks aren't stored in the repo. When two versio... | <p>What you're doing is just fine. The "don't use <code>push -f</code>" is advice for people who have pulled, have multiple heads, and don't know what that means.</p> <p>Bookmarks won't show up on bitbucket. The changesets will show up as heads, of course, but the boomarks aren't stored in the repo. When two versio... | 802, 8337 | bitbucket, mercurial | <h1>Pushing multiple heads with Mercurial</h1>
<p>For a workflow like this, </p>
<pre><code>$hg clone <bitbucket repo>
... fix, fix ...
$hg commit -m "good comment!"
$hg bookmark stable
...new fix on stable...
$hg commit -m "new fix on stable bookmark"
$hg bookmark experimental --> I would like to defer me... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,367 | mercurial | # Pushing multiple heads with Mercurial
For a workflow like this,
```
$hg clone <bitbucket repo>
... fix, fix ...
$hg commit -m "good comment!"
$hg bookmark stable
...new fix on stable...
$hg commit -m "new fix on stable bookmark"
$hg bookmark experimental --> I would like to defer merging until its stable.
... ha... | What you're doing is just fine. The "don't use `push -f`" is advice for people who have pulled, have multiple heads, and don't know what that means.
Bookmarks won't show up on bitbucket. The changesets will show up as heads, of course, but the boomarks aren't stored in the repo. When two version 1.6 or later Mercurial... |
3209923 | Is it possible to pull from/push to SourceGear Vault repository using Mercurial? | 7 | 2010-07-09 04:52:14 | <p>I noticed that this kind of functionality exists for subversion and it works very nicely. I was wondering if there is such thing for SourceGear Vault.</p>
| 668 | 1,353,085 | 2018-02-27 14:27:10 | 3,213,230 | 11 | 2010-07-09 13:51:17 | 110,204 | 2018-02-27 14:27:10 | https://stackoverflow.com/q/3209923 | https://stackoverflow.com/a/3213230 | <p>Nope, I'm afraid we only have two-way bridges for <a href="https://www.mercurial-scm.org/wiki/HgSubversion" rel="nofollow noreferrer">Subversion</a> and <a href="https://www.mercurial-scm.org/wiki/HgGit" rel="nofollow noreferrer">Git</a>. I have not heard of anyone writing a bridge for SourceGear Vault.</p>
<p>Howe... | <p>Nope, I'm afraid we only have two-way bridges for <a href="https://www.mercurial-scm.org/wiki/HgSubversion" rel="nofollow noreferrer">Subversion</a> and <a href="https://www.mercurial-scm.org/wiki/HgGit" rel="nofollow noreferrer">Git</a>. I have not heard of anyone writing a bridge for SourceGear Vault.</p> <p>Howe... | 802, 3346, 11607 | dvcs, mercurial, sourcegear-vault | <h1>Is it possible to pull from/push to SourceGear Vault repository using Mercurial?</h1>
<p>I noticed that this kind of functionality exists for subversion and it works very nicely. I was wondering if there is such thing for SourceGear Vault.</p>
| q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,368 | mercurial | # Is it possible to pull from/push to SourceGear Vault repository using Mercurial?
I noticed that this kind of functionality exists for subversion and it works very nicely. I was wondering if there is such thing for SourceGear Vault. | Nope, I'm afraid we only have two-way bridges for [Subversion](https://www.mercurial-scm.org/wiki/HgSubversion) and [Git](https://www.mercurial-scm.org/wiki/HgGit). I have not heard of anyone writing a bridge for SourceGear Vault.
However, you can still use Mercurial *on top of* the other system. This is a general tec... |
822628 | how to quickly tell which files differ in mercurial revisions | 7 | 2009-05-04 23:32:41 | <p>This seems like it should be obvious but I can't figure it out.</p>
<p>Suppose I have mercurial revisions 4 and 7 and I want to see which files changed between those revisions. I can do a <code>hg diff -r 4 -r 7</code> to list the entire set of diffs... is there a way to just list the files that have changed?</p>
| 382 | 44,330 | 2009-05-06 05:11:27 | 822,652 | 11 | 2009-05-04 23:42:25 | 89,266 | 2009-05-05 06:57:45 | https://stackoverflow.com/q/822628 | https://stackoverflow.com/a/822652 | <pre><code>hg status --rev 4:7
</code></pre>
| <pre><code>hg status --rev 4:7 </code></pre> | 802 | mercurial | <h1>how to quickly tell which files differ in mercurial revisions</h1>
<p>This seems like it should be obvious but I can't figure it out.</p>
<p>Suppose I have mercurial revisions 4 and 7 and I want to see which files changed between those revisions. I can do a <code>hg diff -r 4 -r 7</code> to list the entire set of ... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,370 | mercurial | # how to quickly tell which files differ in mercurial revisions
This seems like it should be obvious but I can't figure it out.
Suppose I have mercurial revisions 4 and 7 and I want to see which files changed between those revisions. I can do a `hg diff -r 4 -r 7` to list the entire set of diffs... is there a way to ... | ```
hg status --rev 4:7
``` |
28588533 | Hg: Find out if a branch has been merged in to default? | 6 | 2015-02-18 16:24:33 | <p>So I've got a long and detailed Mercurial Repository which has been worked on by several times over a long period of time with lots of branches, in that time no one knew that you can close a branch.</p>
<p>Recently I've closed nearly 1200 abandoned heads and it runs a lot better. However we have a number of branche... | 2,130 | 82,526 | 2015-02-19 15:20:02 | 28,593,074 | 11 | 2015-02-18 20:16:54 | 892,420 | 2015-02-19 15:20:02 | https://stackoverflow.com/q/28588533 | https://stackoverflow.com/a/28593074 | <p>I believe you can accomplish that with <a href="http://selenic.com/hg/help/revsets" rel="noreferrer">revsets</a>, in particular:</p>
<pre><code>hg log -r "not ancestors(heads(default)) and head() and not closed()"
</code></pre>
<p>That should get you all heads of named branches that have not been closed and are no... | <p>I believe you can accomplish that with <a href="http://selenic.com/hg/help/revsets" rel="noreferrer">revsets</a>, in particular:</p> <pre><code>hg log -r "not ancestors(heads(default)) and head() and not closed()" </code></pre> <p>That should get you all heads of named branches that have not been closed and are no... | 717, 802, 1879 | branch, mercurial, merge | <h1>Hg: Find out if a branch has been merged in to default?</h1>
<p>So I've got a long and detailed Mercurial Repository which has been worked on by several times over a long period of time with lots of branches, in that time no one knew that you can close a branch.</p>
<p>Recently I've closed nearly 1200 abandoned he... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,371 | mercurial | # Hg: Find out if a branch has been merged in to default?
So I've got a long and detailed Mercurial Repository which has been worked on by several times over a long period of time with lots of branches, in that time no one knew that you can close a branch.
Recently I've closed nearly 1200 abandoned heads and it runs ... | I believe you can accomplish that with [revsets](http://selenic.com/hg/help/revsets), in particular:
```
hg log -r "not ancestors(heads(default)) and head() and not closed()"
```
That should get you all heads of named branches that have not been closed and are not ancestors of (i.e. have not been merged into) the def... |
8365811 | will update from mercurial overwrite my changes? | 6 | 2011-12-03 05:41:17 | <p>I use hg command to update a project from repository (mercurial repository). </p>
<pre><code>hg pull
hg update
</code></pre>
<p>Problem is that from my last update, I modified some files for myself. Now the concern is updating from repository will overwrite my changes. How can I prevent that?</p>
| 3,073 | 859,227 | 2011-12-03 07:24:13 | 8,365,894 | 11 | 2011-12-03 05:59:26 | 235,698 | 2011-12-03 06:31:30 | https://stackoverflow.com/q/8365811 | https://stackoverflow.com/a/8365894 | <p><code>hg pull</code> just retrieves new history, so would not affect uncommitted changes.</p>
<p><code>hg update</code> will update to the tip, but uncommitted changes are merged with the new parent.</p>
<p>You won't lose anything, although your merge tool may run if there are conflicts in the merge.</p>
<p>Note, ho... | <p><code>hg pull</code> just retrieves new history, so would not affect uncommitted changes.</p> <p><code>hg update</code> will update to the tip, but uncommitted changes are merged with the new parent.</p> <p>You won't lose anything, although your merge tool may run if there are conflicts in the merge.</p> <p>Note, ho... | 802 | mercurial | <h1>will update from mercurial overwrite my changes?</h1>
<p>I use hg command to update a project from repository (mercurial repository). </p>
<pre><code>hg pull
hg update
</code></pre>
<p>Problem is that from my last update, I modified some files for myself. Now the concern is updating from repository will overwrit... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,372 | mercurial | # will update from mercurial overwrite my changes?
I use hg command to update a project from repository (mercurial repository).
```
hg pull
hg update
```
Problem is that from my last update, I modified some files for myself. Now the concern is updating from repository will overwrite my changes. How can I prevent tha... | `hg pull` just retrieves new history, so would not affect uncommitted changes.
`hg update` will update to the tip, but uncommitted changes are merged with the new parent.
You won't lose anything, although your merge tool may run if there are conflicts in the merge.
Note, however, that `hg update -C`, will "cleanly" ... |
5649641 | Mercurial extension to automatically generate .hgignore file? | 6 | 2011-04-13 12:58:59 | <p>I have been thinking that it sure would be nice to have a command like "hg ignore" that would automatically add all untracked files to the .hgignore file. </p>
<p>Manually editing the .hgignore file is powerful, but when I am frequently creating new repositories it would be nice to be able to add only the files I ... | 850 | 519,285 | 2012-02-03 23:31:22 | 5,649,871 | 11 | 2011-04-13 13:14:49 | 19,465 | 2011-04-14 13:23:40 | https://stackoverflow.com/q/5649641 | https://stackoverflow.com/a/5649871 | <p>Try this once you've added all the files you need: </p>
<p><code>hg stat --unknown --no-status >> .hgignore</code></p>
<p>You can create a command to automatically generate your <code>.hgignore</code> using an <a href="http://www.selenic.com/mercurial/hgrc.5.html#alias" rel="noreferrer">alias</a>. On a Unix-... | <p>Try this once you've added all the files you need: </p> <p><code>hg stat --unknown --no-status >> .hgignore</code></p> <p>You can create a command to automatically generate your <code>.hgignore</code> using an <a href="http://www.selenic.com/mercurial/hgrc.5.html#alias" rel="noreferrer">alias</a>. On a Unix-... | 802 | mercurial | <h1>Mercurial extension to automatically generate .hgignore file?</h1>
<p>I have been thinking that it sure would be nice to have a command like "hg ignore" that would automatically add all untracked files to the .hgignore file. </p>
<p>Manually editing the .hgignore file is powerful, but when I am frequently creatin... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,373 | mercurial | # Mercurial extension to automatically generate .hgignore file?
I have been thinking that it sure would be nice to have a command like "hg ignore" that would automatically add all untracked files to the .hgignore file.
Manually editing the .hgignore file is powerful, but when I am frequently creating new repositories... | Try this once you've added all the files you need:
`hg stat --unknown --no-status >> .hgignore`
You can create a command to automatically generate your `.hgignore` using an [alias](http://www.selenic.com/mercurial/hgrc.5.html#alias). On a Unix-like system, add the following lines to your `.hg/hgrc` (or one of Mercuri... |
4726257 | Most recent tag before tip in mercurial | 6 | 2011-01-18 16:10:36 | <p>I mark releases with <code>hg tag <version-number></code>. When I release a bugfix, I don't want to increment the version number, but I want to use the most recent version number during the build process. If I run <code>hg tags</code>, it will show <code>tip</code> first, then the version numbers in descendi... | 675 | 380,587 | 2017-06-19 10:55:41 | 4,726,432 | 11 | 2011-01-18 16:29:08 | 380,587 | 2011-01-18 16:29:08 | https://stackoverflow.com/q/4726257 | https://stackoverflow.com/a/4726432 | <p>Well, I'm answering my own question. I found the solution, <code>hg help templates</code> shows more options than the documentation on the mercurial site. So <code>hg tip --template '{latesttag}\n'</code> is what I was looking for.</p>
| <p>Well, I'm answering my own question. I found the solution, <code>hg help templates</code> shows more options than the documentation on the mercurial site. So <code>hg tip --template '{latesttag}\n'</code> is what I was looking for.</p> | 81, 115, 802 | mercurial, tags, versioning | <h1>Most recent tag before tip in mercurial</h1>
<p>I mark releases with <code>hg tag <version-number></code>. When I release a bugfix, I don't want to increment the version number, but I want to use the most recent version number during the build process. If I run <code>hg tags</code>, it will show <code>tip</... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,374 | mercurial | # Most recent tag before tip in mercurial
I mark releases with `hg tag <version-number>`. When I release a bugfix, I don't want to increment the version number, but I want to use the most recent version number during the build process. If I run `hg tags`, it will show `tip` first, then the version numbers in descendin... | Well, I'm answering my own question. I found the solution, `hg help templates` shows more options than the documentation on the mercurial site. So `hg tip --template '{latesttag}\n'` is what I was looking for. |
4137980 | Mercurial: make `hg log` not show files? | 6 | 2010-11-09 20:03:54 | <p>I'm (ab)using Mercurial to manage thousands of files that change often, but I'd like to be able to view the log (<code>hg log</code>) without having my term filled with all of the filenames that changed on each commit. <code>hg log -q</code> is a little <em>too</em> quiet, since I need to see the descriptions. Is ... | 2,814 | 140,827 | 2010-11-09 20:45:57 | 4,138,429 | 11 | 2010-11-09 20:45:57 | 19,465 | 2010-11-09 20:45:57 | https://stackoverflow.com/q/4137980 | https://stackoverflow.com/a/4138429 | <p>It sounds as if you might have the <code>verbose</code> flag turned on. You can check by running <code>hg showconfig</code> and looking for a line like <code>ui.verbose=true</code>.</p>
<p>There are a few ways you can fix it: </p>
<ul>
<li>remove that line from the offending configuration file (Mercurial can use ... | <p>It sounds as if you might have the <code>verbose</code> flag turned on. You can check by running <code>hg showconfig</code> and looking for a line like <code>ui.verbose=true</code>.</p> <p>There are a few ways you can fix it: </p> <ul> <li>remove that line from the offending configuration file (Mercurial can use ... | 802, 11445 | mercurial, verbosity | <h1>Mercurial: make `hg log` not show files?</h1>
<p>I'm (ab)using Mercurial to manage thousands of files that change often, but I'd like to be able to view the log (<code>hg log</code>) without having my term filled with all of the filenames that changed on each commit. <code>hg log -q</code> is a little <em>too</em>... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,375 | mercurial | # Mercurial: make `hg log` not show files?
I'm (ab)using Mercurial to manage thousands of files that change often, but I'd like to be able to view the log (`hg log`) without having my term filled with all of the filenames that changed on each commit. `hg log -q` is a little *too* quiet, since I need to see the descrip... | It sounds as if you might have the `verbose` flag turned on. You can check by running `hg showconfig` and looking for a line like `ui.verbose=true`.
There are a few ways you can fix it:
- remove that line from the offending configuration file (Mercurial can use several, and they vary by OS: use `hg help config` to li... |
3310222 | Mercurial: Fix a borked history | 6 | 2010-07-22 14:54:45 | <p>So working on a project recently (by myself - no other developers), I somehow managed to seriously bork the history with some (apparently) bad merges from cloned repositories.</p>
<p>What I would like to do - <strong>need to do</strong> - is fix this by just deleting the last 8 commits (according to <code>hg glog</... | 2,768 | 130,442 | 2010-07-22 15:05:09 | 3,310,344 | 11 | 2010-07-22 15:05:09 | 6,884 | 2010-07-22 15:05:09 | https://stackoverflow.com/q/3310222 | https://stackoverflow.com/a/3310344 | <p>Make a clone of your repository - when you do this, you can specify the last commit that should be cloned.</p>
<p>So, if your repository has 100 changesets and you want to get rid of changesets 93 to 100, just do this:</p>
<pre><code>hg clone -r 92 BadRepository CleanRepository
</code></pre>
<p>--> the <code>Clea... | <p>Make a clone of your repository - when you do this, you can specify the last commit that should be cloned.</p> <p>So, if your repository has 100 changesets and you want to get rid of changesets 93 to 100, just do this:</p> <pre><code>hg clone -r 92 BadRepository CleanRepository </code></pre> <p>--> the <code>Clea... | 802 | mercurial | <h1>Mercurial: Fix a borked history</h1>
<p>So working on a project recently (by myself - no other developers), I somehow managed to seriously bork the history with some (apparently) bad merges from cloned repositories.</p>
<p>What I would like to do - <strong>need to do</strong> - is fix this by just deleting the las... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,376 | mercurial | # Mercurial: Fix a borked history
So working on a project recently (by myself - no other developers), I somehow managed to seriously bork the history with some (apparently) bad merges from cloned repositories.
What I would like to do - **need to do** - is fix this by just deleting the last 8 commits (according to `hg... | Make a clone of your repository - when you do this, you can specify the last commit that should be cloned.
So, if your repository has 100 changesets and you want to get rid of changesets 93 to 100, just do this:
```
hg clone -r 92 BadRepository CleanRepository
```
--> the `CleanRepository` will only contain changese... |
1397658 | Is 'pull' a synonym for 'clone' in a Mercurial source-control repository? | 6 | 2009-09-09 05:13:23 | <p>I'm seeing the command 'pull' and wondering how that's different from a 'clone'. Both terms seem to imply retrieving code from some remote repository. Is there some subtle distinction here?</p>
| 3,228 | 170,562 | 2017-06-19 11:25:42 | 1,397,750 | 11 | 2009-09-09 05:47:43 | 94,732 | 2009-09-09 05:47:43 | https://stackoverflow.com/q/1397658 | https://stackoverflow.com/a/1397750 | <p><code>hg clone</code> is how you make a local copy of a remote repository. The Subversion equivalent is <code>svn checkout</code>.</p>
<p><code>hg pull</code> pulls changes from another repository. <code>hg update</code> applies those changes to the local repository. <code>hg pull -u</code> is equivalent to <cod... | <p><code>hg clone</code> is how you make a local copy of a remote repository. The Subversion equivalent is <code>svn checkout</code>.</p> <p><code>hg pull</code> pulls changes from another repository. <code>hg update</code> applies those changes to the local repository. <code>hg pull -u</code> is equivalent to <cod... | 456, 802, 3050, 3346, 4860 | clone, dvcs, mercurial, pull, version-control | <h1>Is 'pull' a synonym for 'clone' in a Mercurial source-control repository?</h1>
<p>I'm seeing the command 'pull' and wondering how that's different from a 'clone'. Both terms seem to imply retrieving code from some remote repository. Is there some subtle distinction here?</p>
| q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%mercurial%' OR '%hg%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,377 | mercurial | # Is 'pull' a synonym for 'clone' in a Mercurial source-control repository?
I'm seeing the command 'pull' and wondering how that's different from a 'clone'. Both terms seem to imply retrieving code from some remote repository. Is there some subtle distinction here? | `hg clone` is how you make a local copy of a remote repository. The Subversion equivalent is `svn checkout`.
`hg pull` pulls changes from another repository. `hg update` applies those changes to the local repository. `hg pull -u` is equivalent to `hg pull; hg update`. The Subversion equivalent to `hg pull -u` is `svn ... |
24884827 | Possible Locations for Sequence/Picture Parameter Set(s) for H.264 Stream | 108 | 2014-07-22 10:25:19 | <p>I'm working on a H.264 Decoder and I'm wondering where to find the SPS and PPS. My reference literature tells me that those are NAL Units encoded in the H.264-Stream, but when I look into an example-MP4-File with IsoViewer, it says that the SPS and PPS are in the avcC Box.</p>
<p>How exactly does this work? How does... | 91,515 | 3,664,589 | 2021-08-09 23:44:10 | 24,890,903 | 391 | 2014-07-22 15:00:46 | 210,785 | 2020-12-23 17:37:03 | https://stackoverflow.com/q/24884827 | https://stackoverflow.com/a/24890903 | <p>First off, it's important to understand that there is no single standard H.264 elementary bitstream format. The specification document does contain an Annex, specifically Annex B, that describes one possible format, but it is not an actual requirement. The standard specifies how video is encoded into individual pack... | <p>First off, it's important to understand that there is no single standard H.264 elementary bitstream format. The specification document does contain an Annex, specifically Annex B, that describes one possible format, but it is not an actual requirement. The standard specifies how video is encoded into individual pack... | 360, 1034, 8470, 33093, 38771 | h.264, mkv, mp4, parameters, set | <h1>Possible Locations for Sequence/Picture Parameter Set(s) for H.264 Stream</h1>
<p>I'm working on a H.264 Decoder and I'm wondering where to find the SPS and PPS. My reference literature tells me that those are NAL Units encoded in the H.264-Stream, but when I look into an example-MP4-File with IsoViewer, it says th... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,378 | perforce | # Possible Locations for Sequence/Picture Parameter Set(s) for H.264 Stream
I'm working on a H.264 Decoder and I'm wondering where to find the SPS and PPS. My reference literature tells me that those are NAL Units encoded in the H.264-Stream, but when I look into an example-MP4-File with IsoViewer, it says that the SP... | First off, it's important to understand that there is no single standard H.264 elementary bitstream format. The specification document does contain an Annex, specifically Annex B, that describes one possible format, but it is not an actual requirement. The standard specifies how video is encoded into individual packets... |
2775823 | What is the difference between "Rollback..." and "Back Out Submitted Changelist #####" in Perforce P4V | 203 | 2010-05-05 18:32:48 | <p>I want to reverse the changes from one of my checkins. In the right-click context menu of the particular changelist, there are these two options:</p>
<ul>
<li>Rollback...</li>
<li>Back Out Submitted Changelist </li>
</ul>
<p>What is the difference between these two? In what situations should I use either one?</p>
| 118,612 | 116,311 | 2019-05-10 14:36:48 | 2,776,209 | 227 | 2010-05-05 19:35:00 | 4,228 | 2011-08-24 18:45:22 | https://stackoverflow.com/q/2775823 | https://stackoverflow.com/a/2776209 | <p>Both of these operations restore a set of files to a previous state and are essentially faster, safer ways of undoing mistakes than using the <code>p4 obliterate</code> command (and you don't need admin access to use them). </p>
<p>In the case of "Rollback...", this could be any number of files, even an entire dep... | <p>Both of these operations restore a set of files to a previous state and are essentially faster, safer ways of undoing mistakes than using the <code>p4 obliterate</code> command (and you don't need admin access to use them). </p> <p>In the case of "Rollback...", this could be any number of files, even an entire dep... | 1286, 8025 | p4v, perforce | <h1>What is the difference between "Rollback..." and "Back Out Submitted Changelist #####" in Perforce P4V</h1>
<p>I want to reverse the changes from one of my checkins. In the right-click context menu of the particular changelist, there are these two options:</p>
<ul>
<li>Rollback...</li>
<li>Back Out Submitted Chang... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,380 | perforce | # What is the difference between "Rollback..." and "Back Out Submitted Changelist #####" in Perforce P4V
I want to reverse the changes from one of my checkins. In the right-click context menu of the particular changelist, there are these two options:
- Rollback...
- Back Out Submitted Changelist
What is the differen... | Both of these operations restore a set of files to a previous state and are essentially faster, safer ways of undoing mistakes than using the `p4 obliterate` command (and you don't need admin access to use them).
In the case of "Rollback...", this could be any number of files, even an entire depot. You can tell it to ... |
35177797 | What is Fragmented MP4 (fMP4) and how is it different than normal MP4? | 100 | 2016-02-03 12:59:34 | <p>Media Source Extension (<strong>MSE</strong>) needs fragmented mp4 for playback in the browser.</p>
| 115,527 | 5,160,432 | 2024-05-17 22:22:33 | 35,180,327 | 203 | 2016-02-03 14:55:22 | 619,602 | 2018-04-08 01:20:04 | https://stackoverflow.com/q/35177797 | https://stackoverflow.com/a/35180327 | <p>A fragmented MP4 contains a series of segments which can be requested individually if your server supports byte-range requests.</p>
<h2>Boxes aka Atoms</h2>
<p>All MP4 files use an object oriented format that contains <a href="http://atomicparsley.sourceforge.net/mpeg-4files.html" rel="noreferrer">boxes aka atoms<... | <p>A fragmented MP4 contains a series of segments which can be requested individually if your server supports byte-range requests.</p> <h2>Boxes aka Atoms</h2> <p>All MP4 files use an object oriented format that contains <a href="http://atomicparsley.sourceforge.net/mpeg-4files.html" rel="noreferrer">boxes aka atoms<... | 82, 1034, 92949, 120757 | fmp4, media, media-source, mp4 | <h1>What is Fragmented MP4 (fMP4) and how is it different than normal MP4?</h1>
<p>Media Source Extension (<strong>MSE</strong>) needs fragmented mp4 for playback in the browser.</p>
| q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,381 | perforce | # What is Fragmented MP4 (fMP4) and how is it different than normal MP4?
Media Source Extension (**MSE**) needs fragmented mp4 for playback in the browser. | A fragmented MP4 contains a series of segments which can be requested individually if your server supports byte-range requests.
## Boxes aka Atoms
All MP4 files use an object oriented format that contains [boxes aka atoms](http://atomicparsley.sourceforge.net/mpeg-4files.html).
You can view a representation of the b... |
19107685 | Safari <input type="file" accept="video/*"> ignores mp4 files | 82 | 2013-10-01 03:57:09 | <p>I am using an HTML file input like this:</p>
<pre class="lang-html prettyprint-override"><code><input type="file" accept="video/*">
</code></pre>
<p>to allow my users to upload videos to my site. This works as expected in all modern browsers (only permitting the user to select video files)... | 143,182 | 1,911,728 | 2025-04-15 10:18:58 | 19,323,498 | 171 | 2013-10-11 16:58:14 | 1,000,115 | 2013-10-11 16:58:14 | https://stackoverflow.com/q/19107685 | https://stackoverflow.com/a/19323498 | <p>I found that the following accept string will add mp4 and m4v to the list of file types that safari will accept:</p>
<pre><code>accept="video/mp4,video/x-m4v,video/*"
</code></pre>
<p>I'm not sure what the mime type is for webm videos but if you can look that up you should be able to tack it on to the accept strin... | <p>I found that the following accept string will add mp4 and m4v to the list of file types that safari will accept:</p> <pre><code>accept="video/mp4,video/x-m4v,video/*" </code></pre> <p>I'm not sure what the mime type is for webm videos but if you can look that up you should be able to tack it on to the accept strin... | 330, 519, 724, 1034, 1467 | attributes, file-io, mp4, safari, video | <h1>Safari <input type="file" accept="video/*"> ignores mp4 files</h1>
<p>I am using an HTML file input like this:</p>
<pre class="lang-html prettyprint-override"><code><input type="file" accept="video/*">
</code></pre>
<p>to allow my users to upload videos to my site. This works as expected ... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,382 | perforce | # Safari ignores mp4 files
I am using an HTML file input like this:
```
<input type="file" accept="video/*">
```
to allow my users to upload videos to my site. This works as expected in all modern browsers (only permitting the user to select video files) except Safari.
From what I can tell Safari seems to interpret... | I found that the following accept string will add mp4 and m4v to the list of file types that safari will accept:
```
accept="video/mp4,video/x-m4v,video/*"
```
I'm not sure what the mime type is for webm videos but if you can look that up you should be able to tack it on to the accept string. The trick is to specify ... |
26040136 | Bootstrap 3 - Responsive mp4-video | 59 | 2014-09-25 13:40:50 | <p>I tried to find a good solution on the bootstrap site but I didn't get an answer to this yet. I think I can't be the only one struggling with this, but I couldn't find anything that helped me.</p>
<p>I'm trying to embed an mp4-video on my website. The problem is, that if I use an iframe-tag I can't use autoplay and... | 266,583 | 2,717,417 | 2018-12-13 07:48:21 | 26,040,958 | 126 | 2014-09-25 14:19:22 | 2,896,768 | 2016-02-14 11:25:52 | https://stackoverflow.com/q/26040136 | https://stackoverflow.com/a/26040958 | <p>It is to my understanding that you want to embed a video on your site that:</p>
<ul>
<li>Is responsive </li>
<li>Allows both autoplay and loop</li>
<li>Uses Bootstrap </li>
</ul>
<p>This <a href="http://jsfiddle.net/Schybo/beaze7Lc/4/">Demo Here</a> does just that. You have to place another embed class outside of ... | <p>It is to my understanding that you want to embed a video on your site that:</p> <ul> <li>Is responsive </li> <li>Allows both autoplay and loop</li> <li>Uses Bootstrap </li> </ul> <p>This <a href="http://jsfiddle.net/Schybo/beaze7Lc/4/">Demo Here</a> does just that. You have to place another embed class outside of ... | 519, 1034, 70479, 72270, 93851 | mp4, responsive-design, twitter-bootstrap, twitter-bootstrap-3, video | <h1>Bootstrap 3 - Responsive mp4-video</h1>
<p>I tried to find a good solution on the bootstrap site but I didn't get an answer to this yet. I think I can't be the only one struggling with this, but I couldn't find anything that helped me.</p>
<p>I'm trying to embed an mp4-video on my website. The problem is, that if ... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,383 | perforce | # Bootstrap 3 - Responsive mp4-video
I tried to find a good solution on the bootstrap site but I didn't get an answer to this yet. I think I can't be the only one struggling with this, but I couldn't find anything that helped me.
I'm trying to embed an mp4-video on my website. The problem is, that if I use an iframe-... | It is to my understanding that you want to embed a video on your site that:
- Is responsive
- Allows both autoplay and loop
- Uses Bootstrap
This [Demo Here](http://jsfiddle.net/Schybo/beaze7Lc/4/) does just that. You have to place another embed class outside of the object/embed/iframe tag as per the the [instruction... |
261525 | How does Visual Studio's source control integration work with Perforce? | 73 | 2008-11-04 11:01:50 | <p>We're using Perforce and Visual Studio. Whenever we create a branch, some projects will not be bound to source control unless we use "Open from Source Control", but other projects work regardless. From my investigations, I know some of the things involved:</p>
<p>In our .csproj files, there are these settings:</p>
... | 58,343 | 2,283 | 2015-06-19 20:57:23 | 529,538 | 103 | 2009-02-09 19:34:24 | 23,843 | 2015-06-19 20:57:23 | https://stackoverflow.com/q/261525 | https://stackoverflow.com/a/529538 | <h1>Introduction</h1>
<p>I would disagree with the claim that Perforce integration in Visual Studio is "terrible". Rather, I'd define it as "out of the box experience is less than optimal" :-). The following sections discuss my understanding of the integration and recommendations for project/solution setup.</p>
<p>If... | <h1>Introduction</h1> <p>I would disagree with the claim that Perforce integration in Visual Studio is "terrible". Rather, I'd define it as "out of the box experience is less than optimal" :-). The following sections discuss my understanding of the integration and recommendations for project/solution setup.</p> <p>If... | 456, 1286, 33953 | perforce, version-control, visual-studio | <h1>How does Visual Studio's source control integration work with Perforce?</h1>
<p>We're using Perforce and Visual Studio. Whenever we create a branch, some projects will not be bound to source control unless we use "Open from Source Control", but other projects work regardless. From my investigations, I know some of ... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,384 | perforce | # How does Visual Studio's source control integration work with Perforce?
We're using Perforce and Visual Studio. Whenever we create a branch, some projects will not be bound to source control unless we use "Open from Source Control", but other projects work regardless. From my investigations, I know some of the thing... | # Introduction
I would disagree with the claim that Perforce integration in Visual Studio is "terrible". Rather, I'd define it as "out of the box experience is less than optimal" :-). The following sections discuss my understanding of the integration and recommendations for project/solution setup.
If you're not inter... |
47007 | Determining the last changelist synced to in Perforce | 124 | 2008-09-05 22:36:02 | <p>A question that occasionally arises is what is the best way to determine the changelist that you last synced to in Perforce. This is often needed for things like injecting the changelist number into the revision info by the automatic build system.</p>
| 96,025 | 2,102 | 2023-01-17 20:39:45 | 256,455 | 97 | 2008-11-02 03:05:32 | 14,576 | 2023-01-17 20:39:45 | https://stackoverflow.com/q/47007 | https://stackoverflow.com/a/256455 | <p>I recommend the opposite for automatic build systems: you should first get the latest changelist from the server using:</p>
<pre><code>p4 changes -s submitted -m1
</code></pre>
<p>then sync to that change and record it in the revision info. The reason is as follows. Although <a href="https://portal.perforce.com/s/... | <p>I recommend the opposite for automatic build systems: you should first get the latest changelist from the server using:</p> <pre><code>p4 changes -s submitted -m1 </code></pre> <p>then sync to that change and record it in the revision info. The reason is as follows. Although <a href="https://portal.perforce.com/s/... | 1286 | perforce | <h1>Determining the last changelist synced to in Perforce</h1>
<p>A question that occasionally arises is what is the best way to determine the changelist that you last synced to in Perforce. This is often needed for things like injecting the changelist number into the revision info by the automatic build system.</p>
| q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,385 | perforce | # Determining the last changelist synced to in Perforce
A question that occasionally arises is what is the best way to determine the changelist that you last synced to in Perforce. This is often needed for things like injecting the changelist number into the revision info by the automatic build system. | I recommend the opposite for automatic build systems: you should first get the latest changelist from the server using:
```
p4 changes -s submitted -m1
```
then sync to that change and record it in the revision info. The reason is as follows. Although [Perforce recommends the following](https://portal.perforce.com/s/... |
9272 | How to find untracked files in a Perforce tree? (analogue of svn status) | 94 | 2008-08-12 21:44:32 | <p>Anybody have a script or alias to find untracked (really: unadded) files in a Perforce tree?</p>
<p>EDIT: I updated the accepted answer on this one since it looks like P4V added support for this in the January 2009 release.</p>
| 52,041 | 1,146 | 2024-07-24 19:36:42 | 971,143 | 91 | 2009-06-09 16:28:42 | 11,801 | 2016-02-16 06:44:19 | https://stackoverflow.com/q/9272 | https://stackoverflow.com/a/971143 | <p><strong>EDIT:</strong> Please use <code>p4 status</code> now. There is no need for jumping through hoops anymore. See @ColonelPanic's <a href="https://stackoverflow.com/a/13864328/39648">answer</a>.</p>
<p>In the Jan 2009 version of P4V, you can right-click on any folder in your workspace tree and click "reconcile ... | <p><strong>EDIT:</strong> Please use <code>p4 status</code> now. There is no need for jumping through hoops anymore. See @ColonelPanic's <a href="https://stackoverflow.com/a/13864328/39648">answer</a>.</p> <p>In the Jan 2009 version of P4V, you can right-click on any folder in your workspace tree and click "reconcile ... | 33, 456, 1286 | language-agnostic, perforce, version-control | <h1>How to find untracked files in a Perforce tree? (analogue of svn status)</h1>
<p>Anybody have a script or alias to find untracked (really: unadded) files in a Perforce tree?</p>
<p>EDIT: I updated the accepted answer on this one since it looks like P4V added support for this in the January 2009 release.</p>
| q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,386 | perforce | # How to find untracked files in a Perforce tree? (analogue of svn status)
Anybody have a script or alias to find untracked (really: unadded) files in a Perforce tree?
EDIT: I updated the accepted answer on this one since it looks like P4V added support for this in the January 2009 release. | **EDIT:** Please use `p4 status` now. There is no need for jumping through hoops anymore. See @ColonelPanic's [answer](https://stackoverflow.com/a/13864328/39648).
In the Jan 2009 version of P4V, you can right-click on any folder in your workspace tree and click "reconcile offline work..."
This will do a little proce... |
8616855 | How to output fragmented mp4 with ffmpeg? | 64 | 2011-12-23 13:51:15 | <p><code>ffmpeg -i infile.avi out.mp4</code> outputs non-fragmented MP4.</p>
<p>How do I obtain fragmented mp4?</p>
<p><strong>Update</strong>
A fragmented mp4 file is internally divided into several back-to-back chunks or MPEG-4 movie fragments. Each chunk has its own moof atom - so there are several moof atoms inte... | 98,483 | 492,857 | 2025-03-04 16:38:23 | 9,734,251 | 89 | 2012-03-16 08:52:19 | 638,471 | 2020-12-30 16:23:20 | https://stackoverflow.com/q/8616855 | https://stackoverflow.com/a/9734251 | <p>This should do the trick:</p>
<pre><code>ffmpeg -re -i infile.ext -g 52 \
-c:a aac -b:a 64k -c:v libx264 -b:v 448k \
-f mp4 -movflags frag_keyframe+empty_moov \
output.mp4
</code></pre>
<ul>
<li><code>frag_keyframe</code> causes fragmented output,</li>
<li><code>empty_moov</code> will cause output to be 100% fragmen... | <p>This should do the trick:</p> <pre><code>ffmpeg -re -i infile.ext -g 52 \ -c:a aac -b:a 64k -c:v libx264 -b:v 448k \ -f mp4 -movflags frag_keyframe+empty_moov \ output.mp4 </code></pre> <ul> <li><code>frag_keyframe</code> causes fragmented output,</li> <li><code>empty_moov</code> will cause output to be 100% fragmen... | 1034, 3847 | ffmpeg, mp4 | <h1>How to output fragmented mp4 with ffmpeg?</h1>
<p><code>ffmpeg -i infile.avi out.mp4</code> outputs non-fragmented MP4.</p>
<p>How do I obtain fragmented mp4?</p>
<p><strong>Update</strong>
A fragmented mp4 file is internally divided into several back-to-back chunks or MPEG-4 movie fragments. Each chunk has its o... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,387 | perforce | # How to output fragmented mp4 with ffmpeg?
`ffmpeg -i infile.avi out.mp4` outputs non-fragmented MP4.
How do I obtain fragmented mp4?
**Update**
A fragmented mp4 file is internally divided into several back-to-back chunks or MPEG-4 movie fragments. Each chunk has its own moof atom - so there are several moof atoms ... | This should do the trick:
```
ffmpeg -re -i infile.ext -g 52 \
-c:a aac -b:a 64k -c:v libx264 -b:v 448k \
-f mp4 -movflags frag_keyframe+empty_moov \
output.mp4
```
- `frag_keyframe` causes fragmented output,
- `empty_moov` will cause output to be 100% fragmented; without this the first fragment will be muxed as a sh... |
18534835 | Fastest way to extract a specific frame from a video (PHP/ffmpeg/anything) | 53 | 2013-08-30 14:02:11 | <p>I have a web page, which (among other things) needs to extract a specific frame from a user-uploaded video. The user seeks to a particular part of a .mp4 in the player, then clicks a button, and an ajax call gets fired off to a php script which takes the .mp4, and the exact time from the video, and uses that to ext... | 42,463 | 47,450 | 2022-03-16 14:45:20 | 18,539,500 | 84 | 2013-08-30 18:39:37 | 484,441 | 2014-06-10 16:36:10 | https://stackoverflow.com/q/18534835 | https://stackoverflow.com/a/18539500 | <p>Of course you could code up some C/C++ and link to -lav*, basically creating a simplified version of ffmpeg just for extracting frames, and maybe even do it as a php extension (also I wouldn't run it as the same user, let alone in the same process). But the result is very unlikely to be faster, because you would onl... | <p>Of course you could code up some C/C++ and link to -lav*, basically creating a simplified version of ffmpeg just for extracting frames, and maybe even do it as a php extension (also I wouldn't run it as the same user, let alone in the same process). But the result is very unlikely to be faster, because you would onl... | 5, 519, 1034, 3847, 10009 | ffmpeg, mp4, php, video, video-processing | <h1>Fastest way to extract a specific frame from a video (PHP/ffmpeg/anything)</h1>
<p>I have a web page, which (among other things) needs to extract a specific frame from a user-uploaded video. The user seeks to a particular part of a .mp4 in the player, then clicks a button, and an ajax call gets fired off to a php ... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,388 | perforce | # Fastest way to extract a specific frame from a video (PHP/ffmpeg/anything)
I have a web page, which (among other things) needs to extract a specific frame from a user-uploaded video. The user seeks to a particular part of a .mp4 in the player, then clicks a button, and an ajax call gets fired off to a php script whi... | Of course you could code up some C/C++ and link to -lav*, basically creating a simplified version of ffmpeg just for extracting frames, and maybe even do it as a php extension (also I wouldn't run it as the same user, let alone in the same process). But the result is very unlikely to be faster, because you would only a... |
9578881 | how to list my shelved changes in perforce? | 48 | 2012-03-06 06:21:13 | <p>p4 shelve saved a lot of my effort to edit the same file with different changes.</p>
<p>The problem is after i shelved some changes, I start to forget what I've shelved.
Is there a way to list all the changes I've shelved?
I checked <code>p4 help unshelve/shelve</code> but could not find the option.</p>
| 40,433 | 221,794 | 2021-06-12 06:17:25 | 13,314,516 | 72 | 2012-11-09 19:19:23 | 380,757 | 2012-11-09 19:19:23 | https://stackoverflow.com/q/9578881 | https://stackoverflow.com/a/13314516 | <p>This should list all the shelved changes per user.</p>
<pre><code>p4 changes -u <USERNAME> -s shelved
</code></pre>
| <p>This should list all the shelved changes per user.</p> <pre><code>p4 changes -u <USERNAME> -s shelved </code></pre> | 1286 | perforce | <h1>how to list my shelved changes in perforce?</h1>
<p>p4 shelve saved a lot of my effort to edit the same file with different changes.</p>
<p>The problem is after i shelved some changes, I start to forget what I've shelved.
Is there a way to list all the changes I've shelved?
I checked <code>p4 help unshelve/she... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,391 | perforce | # how to list my shelved changes in perforce?
p4 shelve saved a lot of my effort to edit the same file with different changes.
The problem is after i shelved some changes, I start to forget what I've shelved.
Is there a way to list all the changes I've shelved?
I checked `p4 help unshelve/shelve` but could not find t... | This should list all the shelved changes per user.
```
p4 changes -u <USERNAME> -s shelved
``` |
7758173 | How to view Shelved P4 Changes? | 62 | 2011-10-13 17:43:49 | <p>One of our team member (located in different region) has shelved changes in P4 with changelist 1234. </p>
<p>Now, if I want to see what files are modified snf what are the changes, how can I do this? </p>
<p>What is the P4 command that I should use to see the changes made by our team member?</p>
| 104,071 | 824,210 | 2022-10-17 21:32:29 | 7,758,661 | 66 | 2011-10-13 18:23:51 | null | 2011-10-14 07:45:19 | https://stackoverflow.com/q/7758173 | https://stackoverflow.com/a/7758661 | <p><code>p4 describe -S 1234</code> should to the trick, see <a href="http://www.perforce.com/perforce/doc.current/manuals/cmdref/describe.html" rel="noreferrer">the documentation on describe</a>.</p>
<p>To see the file content you would <em>unshelve</em> the files into your workspace (assuming you have a workspace fo... | <p><code>p4 describe -S 1234</code> should to the trick, see <a href="http://www.perforce.com/perforce/doc.current/manuals/cmdref/describe.html" rel="noreferrer">the documentation on describe</a>.</p> <p>To see the file content you would <em>unshelve</em> the files into your workspace (assuming you have a workspace fo... | 1286, 8103 | perforce, shelve | <h1>How to view Shelved P4 Changes?</h1>
<p>One of our team member (located in different region) has shelved changes in P4 with changelist 1234. </p>
<p>Now, if I want to see what files are modified snf what are the changes, how can I do this? </p>
<p>What is the P4 command that I should use to see the changes made b... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,392 | perforce | # How to view Shelved P4 Changes?
One of our team member (located in different region) has shelved changes in P4 with changelist 1234.
Now, if I want to see what files are modified snf what are the changes, how can I do this?
What is the P4 command that I should use to see the changes made by our team member? | `p4 describe -S 1234` should to the trick, see [the documentation on describe](http://www.perforce.com/perforce/doc.current/manuals/cmdref/describe.html).
To see the file content you would *unshelve* the files into your workspace (assuming you have a workspace for the same project your colleague is working on).
Creat... |
33108105 | Converting an HLS (m3u8) to MP4 | 31 | 2015-10-13 16:39:51 | <p>Can anyone advise on how to construct an <code>MP4</code> file from an <code>HLS</code> stream (the reverse of what you usually want)? Say I have the m3u8 - is there a straightforward way of getting a single <code>MP4</code> using <code>FFMPEG</code> or some other tool?</p>
| 81,734 | 2,534,777 | 2018-05-21 10:55:30 | 33,111,765 | 64 | 2015-10-13 20:12:17 | 210,785 | 2015-10-13 20:12:17 | https://stackoverflow.com/q/33108105 | https://stackoverflow.com/a/33111765 | <p><code>ffmpeg -i in.m3u8 -acodec copy -vcodec copy out.mp4</code></p>
<p>For AAC audio you will also need to add the the bit ststream filter. (Thanks @aergistal for pointing that out)</p>
<p><code>ffmpeg -i in.m3u8 -acodec copy -bsf:a aac_adtstoasc -vcodec copy out.mp4</code></p>
| <p><code>ffmpeg -i in.m3u8 -acodec copy -vcodec copy out.mp4</code></p> <p>For AAC audio you will also need to add the the bit ststream filter. (Thanks @aergistal for pointing that out)</p> <p><code>ffmpeg -i in.m3u8 -acodec copy -bsf:a aac_adtstoasc -vcodec copy out.mp4</code></p> | 519, 1034, 3847, 12657, 53000 | ffmpeg, http-live-streaming, mp4, transcoding, video | <h1>Converting an HLS (m3u8) to MP4</h1>
<p>Can anyone advise on how to construct an <code>MP4</code> file from an <code>HLS</code> stream (the reverse of what you usually want)? Say I have the m3u8 - is there a straightforward way of getting a single <code>MP4</code> using <code>FFMPEG</code> or some other tool?</p>
| q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,393 | perforce | # Converting an HLS (m3u8) to MP4
Can anyone advise on how to construct an `MP4` file from an `HLS` stream (the reverse of what you usually want)? Say I have the m3u8 - is there a straightforward way of getting a single `MP4` using `FFMPEG` or some other tool? | `ffmpeg -i in.m3u8 -acodec copy -vcodec copy out.mp4`
For AAC audio you will also need to add the the bit ststream filter. (Thanks @aergistal for pointing that out)
`ffmpeg -i in.m3u8 -acodec copy -bsf:a aac_adtstoasc -vcodec copy out.mp4` |
55449 | Can you "ignore" a file in Perforce? | 104 | 2008-09-10 22:45:31 | <p>I sometimes use the feature 'Reconcile Offline Work...' found in Perforce's P4V IDE to sync up any files that I have been working on while disconnected from the P4 depot. It launches another window that performs a 'Folder Diff'.</p>
<p>I have files I never want to check in to source control (like ones found in bin ... | 65,929 | 4,872 | 2023-09-19 18:56:40 | 55,509 | 60 | 2008-09-10 23:48:48 | 4,228 | 2014-07-14 13:39:00 | https://stackoverflow.com/q/55449 | https://stackoverflow.com/a/55509 | <p>As of version 2012.1, Perforce supports the <code>P4IGNORE</code> environment variable. I updated my answer to <a href="https://stackoverflow.com/a/3103898/4228">this question about ignoring directories</a> with an explanation of how it works. Then I noticed this answer, which is now superfluous I guess.</p>
<hr>
... | <p>As of version 2012.1, Perforce supports the <code>P4IGNORE</code> environment variable. I updated my answer to <a href="https://stackoverflow.com/a/3103898/4228">this question about ignoring directories</a> with an explanation of how it works. Then I noticed this answer, which is now superfluous I guess.</p> <hr> ... | 456, 1286, 4333 | ignore, perforce, version-control | <h1>Can you "ignore" a file in Perforce?</h1>
<p>I sometimes use the feature 'Reconcile Offline Work...' found in Perforce's P4V IDE to sync up any files that I have been working on while disconnected from the P4 depot. It launches another window that performs a 'Folder Diff'.</p>
<p>I have files I never want to check... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,394 | perforce | # Can you "ignore" a file in Perforce?
I sometimes use the feature 'Reconcile Offline Work...' found in Perforce's P4V IDE to sync up any files that I have been working on while disconnected from the P4 depot. It launches another window that performs a 'Folder Diff'.
I have files I never want to check in to source co... | As of version 2012.1, Perforce supports the `P4IGNORE` environment variable. I updated my answer to [this question about ignoring directories](https://stackoverflow.com/a/3103898/4228) with an explanation of how it works. Then I noticed this answer, which is now superfluous I guess.
---
Assuming you have a client nam... |
2299347 | How do I embed a mp4 movie into my html? | 49 | 2010-02-19 20:30:58 | <p>I have a blog section on my site that has the TinyMce editor. I want to embed a video when I post a blog and it's just spitting out the code. I have added the <code><embed></code> tag on my output script. </p>
<p>This is the code I'm using to for the video:</p>
<pre><code><object width="425" height="350"&... | 329,321 | 163,255 | 2019-01-14 15:04:46 | 2,299,452 | 60 | 2010-02-19 20:51:00 | 34,813 | 2010-07-19 23:57:44 | https://stackoverflow.com/q/2299347 | https://stackoverflow.com/a/2299452 | <p>You should look into <a href="http://camendesign.com/code/video_for_everybody" rel="noreferrer">Video For Everyone</a>:</p>
<blockquote>
<p>Video for Everybody is very simply a chunk of HTML code that embeds a video into a website
using the HTML5 element which offers native playback in Firefox
3.5 and Safari... | <p>You should look into <a href="http://camendesign.com/code/video_for_everybody" rel="noreferrer">Video For Everyone</a>:</p> <blockquote> <p>Video for Everybody is very simply a chunk of HTML code that embeds a video into a website using the HTML5 element which offers native playback in Firefox 3.5 and Safari... | 2, 519, 1034, 7256 | embedding, html, mp4, video | <h1>How do I embed a mp4 movie into my html?</h1>
<p>I have a blog section on my site that has the TinyMce editor. I want to embed a video when I post a blog and it's just spitting out the code. I have added the <code><embed></code> tag on my output script. </p>
<p>This is the code I'm using to for the video:</p... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,395 | perforce | # How do I embed a mp4 movie into my html?
I have a blog section on my site that has the TinyMce editor. I want to embed a video when I post a blog and it's just spitting out the code. I have added the `<embed>` tag on my output script.
This is the code I'm using to for the video:
```
<object width="425" height="350... | You should look into [Video For Everyone](http://camendesign.com/code/video_for_everybody):
> Video for Everybody is very simply a chunk of HTML code that embeds a video into a website
> using the HTML5 element which offers native playback in Firefox
> 3.5 and Safari 3 & 4 and an increasing number of other browsers.
>... |
3119797 | ffmpeg settings for converting to mp4 and ogg for HTML5 video | 61 | 2010-06-25 16:42:58 | <p>Despite all the hype, in reality the HTML5 video tag has a bit of a problem. In order to use it and for it to be cross browser compatible, you have to include more than one format of the video. To target all supported browsers these formats are mp4 and ogg. </p>
<p>I was searching around for optimum settings for ea... | 64,885 | 239,241 | 2012-08-18 20:48:03 | 3,228,424 | 58 | 2010-07-12 12:20:07 | 239,241 | 2012-08-18 20:48:03 | https://stackoverflow.com/q/3119797 | https://stackoverflow.com/a/3228424 | <p>I ended up using <a href="http://ffmpeg.org/" rel="noreferrer">ffmpeg</a> and <a href="http://v2v.cc/~j/ffmpeg2theora/" rel="noreferrer">ffmpeg2theora</a>.</p>
<h3>WebKit compatible h.264 video</h3>
<p>I decided to go for the ipod640 preset because it means the video can be viewed nicely on an iPhone or iPod touch... | <p>I ended up using <a href="http://ffmpeg.org/" rel="noreferrer">ffmpeg</a> and <a href="http://v2v.cc/~j/ffmpeg2theora/" rel="noreferrer">ffmpeg2theora</a>.</p> <h3>WebKit compatible h.264 video</h3> <p>I decided to go for the ipod640 preset because it means the video can be viewed nicely on an iPhone or iPod touch... | 2, 519, 1034, 3847, 13681 | ffmpeg, html, mp4, ogg, video | <h1>ffmpeg settings for converting to mp4 and ogg for HTML5 video</h1>
<p>Despite all the hype, in reality the HTML5 video tag has a bit of a problem. In order to use it and for it to be cross browser compatible, you have to include more than one format of the video. To target all supported browsers these formats are m... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,396 | perforce | # ffmpeg settings for converting to mp4 and ogg for HTML5 video
Despite all the hype, in reality the HTML5 video tag has a bit of a problem. In order to use it and for it to be cross browser compatible, you have to include more than one format of the video. To target all supported browsers these formats are mp4 and og... | I ended up using [ffmpeg](http://ffmpeg.org/) and [ffmpeg2theora](http://v2v.cc/~j/ffmpeg2theora/).
### WebKit compatible h.264 video
I decided to go for the ipod640 preset because it means the video can be viewed nicely on an iPhone or iPod touch. Of course, you can change the settings around a bit, get rid of the '... |
15877984 | Fastest way of submitting shelved changelist | 23 | 2013-04-08 11:33:13 | <p>I have shelved a changelist(say X) and I have ensured its correctness. Now i want to submit the changelist. I can </p>
<ol>
<li>p4 unshelve -s X -c Y where Y is a new changelist i create before executing this command.
Then p4 shelve -c X -d and lastly p4 submit -c Y</li>
<li>Otherwise I can unshelve X, delete the s... | 47,400 | null | 2019-10-18 13:37:26 | 15,945,605 | 58 | 2013-04-11 09:46:22 | null | 2019-10-18 13:37:26 | https://stackoverflow.com/q/15877984 | https://stackoverflow.com/a/15945605 | <p>The shortest method is:</p>
<pre><code>$ p4 shelve -c #changelist -d
$ p4 submit -c #changelist
</code></pre>
| <p>The shortest method is:</p> <pre><code>$ p4 shelve -c #changelist -d $ p4 submit -c #changelist </code></pre> | 1286 | perforce | <h1>Fastest way of submitting shelved changelist</h1>
<p>I have shelved a changelist(say X) and I have ensured its correctness. Now i want to submit the changelist. I can </p>
<ol>
<li>p4 unshelve -s X -c Y where Y is a new changelist i create before executing this command.
Then p4 shelve -c X -d and lastly p4 submit ... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,397 | perforce | # Fastest way of submitting shelved changelist
I have shelved a changelist(say X) and I have ensured its correctness. Now i want to submit the changelist. I can
1. p4 unshelve -s X -c Y where Y is a new changelist i create before executing this command.
Then p4 shelve -c X -d and lastly p4 submit -c Y
2. Otherwise... | The shortest method is:
```
$ p4 shelve -c #changelist -d
$ p4 submit -c #changelist
``` |
54717175 | How do I add a custom thumbnail to a .mp4 file using ffmpeg? | 30 | 2019-02-15 21:17:17 | <p>I am trying to find the proper ffmpeg command to add a .png or .jpg image to a .mp4 video as a thumbnail. The command will eventually automatically be executed by a C# program.</p>
<p>This is what I have so far:</p>
<pre class="lang-shell prettyprint-override"><code># This does not work. It only removes the defau... | 47,962 | 9,439,356 | 2020-04-08 14:33:04 | 54,719,926 | 51 | 2019-02-16 04:36:49 | 5,726,027 | 2019-02-16 14:58:10 | https://stackoverflow.com/q/54717175 | https://stackoverflow.com/a/54719926 | <p>Using ffmpeg 4.0, released Apr 20 2018 or newer,</p>
<pre><code>ffmpeg -i video.mp4 -i image.png -map 1 -map 0 -c copy -disposition:0 attached_pic out.mp4
</code></pre>
| <p>Using ffmpeg 4.0, released Apr 20 2018 or newer,</p> <pre><code>ffmpeg -i video.mp4 -i image.png -map 1 -map 0 -c copy -disposition:0 attached_pic out.mp4 </code></pre> | 1034, 3847, 4985, 8421, 10009 | ffmpeg, image, mp4, thumbnails, video-processing | <h1>How do I add a custom thumbnail to a .mp4 file using ffmpeg?</h1>
<p>I am trying to find the proper ffmpeg command to add a .png or .jpg image to a .mp4 video as a thumbnail. The command will eventually automatically be executed by a C# program.</p>
<p>This is what I have so far:</p>
<pre class="lang-shell prett... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,398 | perforce | # How do I add a custom thumbnail to a .mp4 file using ffmpeg?
I am trying to find the proper ffmpeg command to add a .png or .jpg image to a .mp4 video as a thumbnail. The command will eventually automatically be executed by a C# program.
This is what I have so far:
```
# This does not work. It only removes the def... | Using ffmpeg 4.0, released Apr 20 2018 or newer,
```
ffmpeg -i video.mp4 -i image.png -map 1 -map 0 -c copy -disposition:0 attached_pic out.mp4
``` |
6387349 | How to list all the files changed by a perforce change list | 37 | 2011-06-17 14:29:00 | <p>I have a specific change list, and from the command line I want to list all files that were a part of that change list. How do I do this?</p>
| 71,023 | 803,399 | 2019-04-24 22:51:21 | 6,387,381 | 50 | 2011-06-17 14:31:47 | 485,447 | 2016-04-13 06:01:35 | https://stackoverflow.com/q/6387349 | https://stackoverflow.com/a/6387381 | <p>That's the <a href="http://www.perforce.com/perforce/doc.current/manuals/cmdref/describe.html" rel="noreferrer">describe</a> command. To describe a particular changelist, you want <code>p4 describe <changelist number></code>.</p>
<p><strong>Update:</strong></p>
<p>If you only want the file names, you can use... | <p>That's the <a href="http://www.perforce.com/perforce/doc.current/manuals/cmdref/describe.html" rel="noreferrer">describe</a> command. To describe a particular changelist, you want <code>p4 describe <changelist number></code>.</p> <p><strong>Update:</strong></p> <p>If you only want the file names, you can use... | 1286 | perforce | <h1>How to list all the files changed by a perforce change list</h1>
<p>I have a specific change list, and from the command line I want to list all files that were a part of that change list. How do I do this?</p>
| q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,399 | perforce | # How to list all the files changed by a perforce change list
I have a specific change list, and from the command line I want to list all files that were a part of that change list. How do I do this? | That's the [describe](http://www.perforce.com/perforce/doc.current/manuals/cmdref/describe.html) command. To describe a particular changelist, you want `p4 describe <changelist number>`.
**Update:**
If you only want the file names, you can use the [files](http://www.perforce.com/perforce/doc.current/manuals/cmdref/p4... |
7386625 | Perforce - How to get the list of files that have been modified locally? | 30 | 2011-09-12 10:41:38 | <p>I am looking for a perforce command to get the list of the files that have been modified locally and "not" checked-in to the repository.</p>
<p>I understand that I "should" get the list of modified files in Pending changelist, but there are scenarios when I don't get to see a modified file in that list. And then on... | 68,707 | 93,613 | 2023-06-19 05:53:35 | 7,386,729 | 49 | 2011-09-12 10:51:57 | 227,140 | 2017-09-10 13:20:49 | https://stackoverflow.com/q/7386625 | https://stackoverflow.com/a/7386729 | <p>Try</p>
<pre><code>p4 diff -f -sa
</code></pre>
<p>(see <a href="https://www.perforce.com/perforce/r16.1/manuals/cmdref/p4_diff.html" rel="noreferrer">manual</a> for further details)</p>
| <p>Try</p> <pre><code>p4 diff -f -sa </code></pre> <p>(see <a href="https://www.perforce.com/perforce/r16.1/manuals/cmdref/p4_diff.html" rel="noreferrer">manual</a> for further details)</p> | 606, 1286 | diff, perforce | <h1>Perforce - How to get the list of files that have been modified locally?</h1>
<p>I am looking for a perforce command to get the list of the files that have been modified locally and "not" checked-in to the repository.</p>
<p>I understand that I "should" get the list of modified files in Pending changelist, but the... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,400 | perforce | # Perforce - How to get the list of files that have been modified locally?
I am looking for a perforce command to get the list of the files that have been modified locally and "not" checked-in to the repository.
I understand that I "should" get the list of modified files in Pending changelist, but there are scenarios... | Try
```
p4 diff -f -sa
```
(see [manual](https://www.perforce.com/perforce/r16.1/manuals/cmdref/p4_diff.html) for further details) |
9731415 | Get the changelist number of current workspace directory | 35 | 2012-03-16 03:26:26 | <p>Each time we do a build, we have to record the changelist number of source files for tracking. We have different projects (under different directories) and they are synced at different changelist number. May you please show me how can we get the changelist number of a specific directory?</p>
| 84,644 | 560,431 | 2025-01-30 17:55:30 | 9,744,067 | 48 | 2012-03-16 20:27:44 | 1,054,341 | 2012-03-16 20:27:44 | https://stackoverflow.com/q/9731415 | https://stackoverflow.com/a/9744067 | <p>Also, there's <code>p4 changes -m1 //path/to/your/project/...#have</code> which, if run in the client workspace that synced the files for building, will give you the highest changelist number of the files in the workspace.</p>
| <p>Also, there's <code>p4 changes -m1 //path/to/your/project/...#have</code> which, if run in the client workspace that synced the files for building, will give you the highest changelist number of the files in the workspace.</p> | 1286 | perforce | <h1>Get the changelist number of current workspace directory</h1>
<p>Each time we do a build, we have to record the changelist number of source files for tracking. We have different projects (under different directories) and they are synced at different changelist number. May you please show me how can we get the chang... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,401 | perforce | # Get the changelist number of current workspace directory
Each time we do a build, we have to record the changelist number of source files for tracking. We have different projects (under different directories) and they are synced at different changelist number. May you please show me how can we get the changelist num... | Also, there's `p4 changes -m1 //path/to/your/project/...#have` which, if run in the client workspace that synced the files for building, will give you the highest changelist number of the files in the workspace. |
34766677 | Python: Splat/unpack operator * in python cannot be used in an expression? | 33 | 2016-01-13 12:24:51 | <p>Does anybody know the reasoning as to why the unary (<code>*</code>) operator cannot be used in an expression involving iterators/lists/tuples?</p>
<p>Why is it only limited to function unpacking? or am I wrong in thinking that?</p>
<p>For example:</p>
<pre><code>>>> [1,2,3, *[4,5,6]]
File "<stdin>... | 20,980 | 1,932,405 | 2023-02-10 09:55:05 | 34,767,282 | 48 | 2016-01-13 12:53:07 | 4,016,285 | 2019-03-22 19:40:47 | https://stackoverflow.com/q/34766677 | https://stackoverflow.com/a/34767282 | <p>Unpacking in list, dict, set, and tuple literals has been added in Python <code>3.5</code>, as described in <strong><a href="https://docs.python.org/3/whatsnew/3.5.html#whatsnew-pep-448" rel="noreferrer">PEP 448</a></strong>:</p>
<pre><code>Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) on Windows (64 bi... | <p>Unpacking in list, dict, set, and tuple literals has been added in Python <code>3.5</code>, as described in <strong><a href="https://docs.python.org/3/whatsnew/3.5.html#whatsnew-pep-448" rel="noreferrer">PEP 448</a></strong>:</p> <pre><code>Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) on Windows (64 bi... | 16, 56905, 59047, 94173, 137509 | argument-unpacking, iterable-unpacking, pep448, python, python-2.7 | <h1>Python: Splat/unpack operator * in python cannot be used in an expression?</h1>
<p>Does anybody know the reasoning as to why the unary (<code>*</code>) operator cannot be used in an expression involving iterators/lists/tuples?</p>
<p>Why is it only limited to function unpacking? or am I wrong in thinking that?</p>... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,402 | perforce | # Python: Splat/unpack operator * in python cannot be used in an expression?
Does anybody know the reasoning as to why the unary (`*`) operator cannot be used in an expression involving iterators/lists/tuples?
Why is it only limited to function unpacking? or am I wrong in thinking that?
For example:
```
>>> [1,2,3,... | Unpacking in list, dict, set, and tuple literals has been added in Python `3.5`, as described in **[PEP 448](https://docs.python.org/3/whatsnew/3.5.html#whatsnew-pep-448)**:
```
Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) on Windows (64 bits).
>>> [1, 2, 3, *[4, 5, 6]]
[1, 2, 3, 4, 5, 6]
```
[Here](htt... |
18251632 | Another: Force Chrome to fully buffer mp4 video | 27 | 2013-08-15 11:19:10 | <p>I've seen a few threads about this, but with no answers, so I thought I'd add another to the grave yard of polluted youtube related pages.</p>
<p>I've got a 100MB mp4 video that needs to be fully downloaded by the browser,</p>
<p>However theres no event that fires when its been fully downloaded, and Chrome seems t... | 53,357 | 470,159 | 2020-10-01 01:57:42 | 18,294,706 | 47 | 2013-08-18 00:49:55 | 1,569,675 | 2018-01-25 17:12:21 | https://stackoverflow.com/q/18251632 | https://stackoverflow.com/a/18294706 | <p>Sadly Chrome - like other HTML5 browsers - tries to be smart about what it's downloading and avoids unnecessary bandwidth usage... this means that sometimes we're left with a sub-optimal experience (ironically YouTube suffers from this so much that there are extensions to force more pre-buffering!)</p>
<p>That said... | <p>Sadly Chrome - like other HTML5 browsers - tries to be smart about what it's downloading and avoids unnecessary bandwidth usage... this means that sometimes we're left with a sub-optimal experience (ironically YouTube suffers from this so much that there are extensions to force more pre-buffering!)</p> <p>That said... | 2, 519, 1034, 1390, 3600 | buffer, google-chrome, html, mp4, video | <h1>Another: Force Chrome to fully buffer mp4 video</h1>
<p>I've seen a few threads about this, but with no answers, so I thought I'd add another to the grave yard of polluted youtube related pages.</p>
<p>I've got a 100MB mp4 video that needs to be fully downloaded by the browser,</p>
<p>However theres no event that... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,403 | perforce | # Another: Force Chrome to fully buffer mp4 video
I've seen a few threads about this, but with no answers, so I thought I'd add another to the grave yard of polluted youtube related pages.
I've got a 100MB mp4 video that needs to be fully downloaded by the browser,
However theres no event that fires when its been fu... | Sadly Chrome - like other HTML5 browsers - tries to be smart about what it's downloading and avoids unnecessary bandwidth usage... this means that sometimes we're left with a sub-optimal experience (ironically YouTube suffers from this so much that there are extensions to force more pre-buffering!)
That said, I've not... |
50914503 | Fastest way to add -movflags +faststart to an MP4 using FFMPEG, leaving everything else as-is | 27 | 2018-06-18 17:14:06 | <p>I want to add <code>-movflags +faststart</code> to an mp4 file. Basically that is all I want to do, nothing else should be changed. I am using ffmpeg.</p>
<p>What's the fastest way to do this? Do I have to re-encode the whole video? Or is there a better/easier way?</p>
| 30,346 | 1,032,391 | 2021-02-14 18:28:33 | 50,914,703 | 46 | 2018-06-18 17:30:51 | 5,726,027 | 2020-02-20 18:47:37 | https://stackoverflow.com/q/50914503 | https://stackoverflow.com/a/50914703 | <p>As simple as:</p>
<pre><code>ffmpeg -i in.mp4 -c copy -map 0 -movflags +faststart out.mp4
</code></pre>
<p>Or if you can compile FFmpeg from source, make the tool qt-faststart in the tools/ directory and run it:</p>
<pre><code>qt-faststart in.mp4 out.mp4
</code></pre>
<p>You can also use mp4box, which lets you m... | <p>As simple as:</p> <pre><code>ffmpeg -i in.mp4 -c copy -map 0 -movflags +faststart out.mp4 </code></pre> <p>Or if you can compile FFmpeg from source, make the tool qt-faststart in the tools/ directory and run it:</p> <pre><code>qt-faststart in.mp4 out.mp4 </code></pre> <p>You can also use mp4box, which lets you m... | 1034, 3847 | ffmpeg, mp4 | <h1>Fastest way to add -movflags +faststart to an MP4 using FFMPEG, leaving everything else as-is</h1>
<p>I want to add <code>-movflags +faststart</code> to an mp4 file. Basically that is all I want to do, nothing else should be changed. I am using ffmpeg.</p>
<p>What's the fastest way to do this? Do I have to re-encod... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,404 | perforce | # Fastest way to add -movflags +faststart to an MP4 using FFMPEG, leaving everything else as-is
I want to add `-movflags +faststart` to an mp4 file. Basically that is all I want to do, nothing else should be changed. I am using ffmpeg.
What's the fastest way to do this? Do I have to re-encode the whole video? Or is t... | As simple as:
```
ffmpeg -i in.mp4 -c copy -map 0 -movflags +faststart out.mp4
```
Or if you can compile FFmpeg from source, make the tool qt-faststart in the tools/ directory and run it:
```
qt-faststart in.mp4 out.mp4
```
You can also use mp4box, which lets you move the MOOV atom to the start via this command:
`... |
17399351 | How to play .mp4 video in videoview in android? | 46 | 2013-07-01 07:28:48 | <p>I am working on a video player application, I want to play <code>.mp4</code> video in the native video view. I am not able to play video using a URL. I am getting the error "<em>Sorry this video cannot be played</em>" and I am also not able to play downloaded video in the native video view either.</p>
<p>M... | 141,354 | 4,233,197 | 2021-08-19 17:07:25 | 37,317,384 | 44 | 2016-05-19 08:06:37 | 4,233,197 | 2021-08-19 07:30:44 | https://stackoverflow.com/q/17399351 | https://stackoverflow.com/a/37317384 | <p>Finally it works for me.</p>
<pre><code>private VideoView videoView;
videoView = (VideoView) findViewById(R.id.videoView);
Uri video = Uri.parse("http://www.servername.com/projects/projectname/videos/1361439400.mp4");
videoView.setVideoURI(video);
videoView.setOnPreparedListener(new MediaPlayer.OnPrepare... | <p>Finally it works for me.</p> <pre><code>private VideoView videoView; videoView = (VideoView) findViewById(R.id.videoView); Uri video = Uri.parse("http://www.servername.com/projects/projectname/videos/1361439400.mp4"); videoView.setVideoURI(video); videoView.setOnPreparedListener(new MediaPlayer.OnPrepare... | 1034, 1386, 22279, 99034 | android, android-videoview, mp4, video-streaming | <h1>How to play .mp4 video in videoview in android?</h1>
<p>I am working on a video player application, I want to play <code>.mp4</code> video in the native video view. I am not able to play video using a URL. I am getting the error "<em>Sorry this video cannot be played</em>" and I am also not able to play d... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,405 | perforce | # How to play .mp4 video in videoview in android?
I am working on a video player application, I want to play `.mp4` video in the native video view. I am not able to play video using a URL. I am getting the error "*Sorry this video cannot be played*" and I am also not able to play downloaded video in the native video v... | Finally it works for me.
```
private VideoView videoView;
videoView = (VideoView) findViewById(R.id.videoView);
Uri video = Uri.parse("http://www.servername.com/projects/projectname/videos/1361439400.mp4");
videoView.setVideoURI(video);
videoView.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
@Overri... |
2472541 | Perforce: How do I p4 integrate a local uncommitted changelist? | 23 | 2010-03-18 18:53:56 | <p>Here's my scenario:</p>
<p>I have two projects projectA and projectB. A branchspec auto-integrates projectA to projectB.
Now, I have a changelist which modifies some files in projectA -- I have not committed/submitted this changelist yet.</p>
<p>I'd like this changelist to go into projectB only.</p>
<p>Doing a
p... | 29,830 | 2,288,585 | 2023-09-12 13:07:52 | 18,861,975 | 44 | 2013-09-18 00:26:34 | 329,188 | 2013-09-18 00:26:34 | https://stackoverflow.com/q/2472541 | https://stackoverflow.com/a/18861975 | <p>Perforce has a much easier way of accomplishing this:</p>
<ol>
<li><p>Shelve your changelist on branchA (note the changelist #, we'll call it NUM for reference here)</p></li>
<li><p>Create a branch mapping between branchA and branchB (we'll call it A_to_B)</p></li>
<li><p>Run the following command:</p>
<pre><code>... | <p>Perforce has a much easier way of accomplishing this:</p> <ol> <li><p>Shelve your changelist on branchA (note the changelist #, we'll call it NUM for reference here)</p></li> <li><p>Create a branch mapping between branchA and branchB (we'll call it A_to_B)</p></li> <li><p>Run the following command:</p> <pre><code>... | 1286 | perforce | <h1>Perforce: How do I p4 integrate a local uncommitted changelist?</h1>
<p>Here's my scenario:</p>
<p>I have two projects projectA and projectB. A branchspec auto-integrates projectA to projectB.
Now, I have a changelist which modifies some files in projectA -- I have not committed/submitted this changelist yet.</p>
... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,406 | perforce | # Perforce: How do I p4 integrate a local uncommitted changelist?
Here's my scenario:
I have two projects projectA and projectB. A branchspec auto-integrates projectA to projectB.
Now, I have a changelist which modifies some files in projectA -- I have not committed/submitted this changelist yet.
I'd like this chang... | Perforce has a much easier way of accomplishing this:
1. Shelve your changelist on branchA (note the changelist #, we'll call it NUM for reference here)
2. Create a branch mapping between branchA and branchB (we'll call it A_to_B)
3. Run the following command:
```
p4 unshelve -s NUM -b A_to_B
``` |
7333232 | How to concatenate two MP4 files using FFmpeg? | 1,066 | 2011-09-07 11:40:01 | <p>I'm trying to concatenate two mp4 files using ffmpeg. I need this to be an automatic process hence why I chose ffmpeg. I'm converting the two files into <code>.ts</code> files and then concatenating them and then trying to encode that concatenated <code>.ts</code> file. The files are <code>h264</code> and <code>a... | 1,216,848 | 144,006 | 2025-09-22 20:27:49 | 7,333,453 | 43 | 2011-09-07 11:53:46 | 144,006 | 2016-10-15 23:30:03 | https://stackoverflow.com/q/7333232 | https://stackoverflow.com/a/7333453 | <p>I ended up using mpg as the intermediate format and it worked (NOTE this is a dangerous example, -qscale 0 will re-encode the video...)</p>
<pre><code>ffmpeg -i 1.mp4 -qscale 0 1.mpg
ffmpeg -i 2.mp4 -qscale 0 2.mpg
cat 1.mpg 2.mpg | ffmpeg -f mpeg -i - -qscale 0 -vcodec mpeg4 output.mp4
</code></pre>
| <p>I ended up using mpg as the intermediate format and it worked (NOTE this is a dangerous example, -qscale 0 will re-encode the video...)</p> <pre><code>ffmpeg -i 1.mp4 -qscale 0 1.mpg ffmpeg -i 2.mp4 -qscale 0 2.mpg cat 1.mpg 2.mpg | ffmpeg -f mpeg -i - -qscale 0 -vcodec mpeg4 output.mp4 </code></pre> | 1034, 3847, 33093 | ffmpeg, h.264, mp4 | <h1>How to concatenate two MP4 files using FFmpeg?</h1>
<p>I'm trying to concatenate two mp4 files using ffmpeg. I need this to be an automatic process hence why I chose ffmpeg. I'm converting the two files into <code>.ts</code> files and then concatenating them and then trying to encode that concatenated <code>.ts</... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,407 | perforce | # How to concatenate two MP4 files using FFmpeg?
I'm trying to concatenate two mp4 files using ffmpeg. I need this to be an automatic process hence why I chose ffmpeg. I'm converting the two files into `.ts` files and then concatenating them and then trying to encode that concatenated `.ts` file. The files are `h264` ... | I ended up using mpg as the intermediate format and it worked (NOTE this is a dangerous example, -qscale 0 will re-encode the video...)
```
ffmpeg -i 1.mp4 -qscale 0 1.mpg
ffmpeg -i 2.mp4 -qscale 0 2.mpg
cat 1.mpg 2.mpg | ffmpeg -f mpeg -i - -qscale 0 -vcodec mpeg4 output.mp4
``` |
21423337 | Add a file to existing changelist | 27 | 2014-01-29 06:05:24 | <p>I edited few files in my workspace and did <code>p4 change</code>. Then I remembered that I have to make some more edits to additional files(not in the changelist). I opened those files with <code>p4 edit</code> but how to add these files to existing changelist. Is there a way to do it?</p>
| 50,597 | 1,317,240 | 2022-01-23 09:44:40 | 21,425,462 | 43 | 2014-01-29 08:13:15 | 179,715 | 2020-06-02 18:26:08 | https://stackoverflow.com/q/21423337 | https://stackoverflow.com/a/21425462 | <p>In general you can use:</p>
<pre><code>p4 reopen -c CLN FILE ...
</code></pre>
<p>to move open files into the specified changelist (regardless of whether they were open for edit, add, etc.).</p>
<p><code>CLN</code> may be <code>default</code> to dissociate the specified files from any numbered changelist.</p>
| <p>In general you can use:</p> <pre><code>p4 reopen -c CLN FILE ... </code></pre> <p>to move open files into the specified changelist (regardless of whether they were open for edit, add, etc.).</p> <p><code>CLN</code> may be <code>default</code> to dissociate the specified files from any numbered changelist.</p> | 1286, 41288 | changelist, perforce | <h1>Add a file to existing changelist</h1>
<p>I edited few files in my workspace and did <code>p4 change</code>. Then I remembered that I have to make some more edits to additional files(not in the changelist). I opened those files with <code>p4 edit</code> but how to add these files to existing changelist. Is there a ... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,408 | perforce | # Add a file to existing changelist
I edited few files in my workspace and did `p4 change`. Then I remembered that I have to make some more edits to additional files(not in the changelist). I opened those files with `p4 edit` but how to add these files to existing changelist. Is there a way to do it? | In general you can use:
```
p4 reopen -c CLN FILE ...
```
to move open files into the specified changelist (regardless of whether they were open for edit, add, etc.).
`CLN` may be `default` to dissociate the specified files from any numbered changelist. |
588264 | Perforce - getting email on every checkin | 20 | 2009-02-25 22:47:32 | <p>Is there a way to get Perforce to send you an email on every check to a particular depository? </p>
| 29,230 | 66,344 | 2017-02-17 19:14:19 | 588,275 | 40 | 2009-02-25 22:51:38 | 1,869 | 2017-02-17 19:14:19 | https://stackoverflow.com/q/588264 | https://stackoverflow.com/a/588275 | <p>Yes. Type "p4 user" to see your user configuration and then under "Reviews:" put the filespec of the area in depot where you'd like to get notified on a check-in, as in:</p>
<pre><code>Reviews:
//depot/myproject/...
</code></pre>
<p>See <a href="https://www.perforce.com/perforce/r15.1/manuals/cmdref/p4_user.ht... | <p>Yes. Type "p4 user" to see your user configuration and then under "Reviews:" put the filespec of the area in depot where you'd like to get notified on a check-in, as in:</p> <pre><code>Reviews: //depot/myproject/... </code></pre> <p>See <a href="https://www.perforce.com/perforce/r15.1/manuals/cmdref/p4_user.ht... | 456, 1286 | perforce, version-control | <h1>Perforce - getting email on every checkin</h1>
<p>Is there a way to get Perforce to send you an email on every check to a particular depository? </p>
| q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,410 | perforce | # Perforce - getting email on every checkin
Is there a way to get Perforce to send you an email on every check to a particular depository? | Yes. Type "p4 user" to see your user configuration and then under "Reviews:" put the filespec of the area in depot where you'd like to get notified on a check-in, as in:
```
Reviews:
//depot/myproject/...
```
See [this section](https://www.perforce.com/perforce/r15.1/manuals/cmdref/p4_user.html#p4_user.usage) of ... |
23202611 | Repairing a Corrupt MP4 Video File | 31 | 2014-04-21 17:42:30 | <p>I have an MP4 video that I took with a Flip camera. The camera froze up while I was stopping the recorder and now the video appears corrupt. I can still download it off the camera, but it won’t play. Now, the video is still over 2 Gigabytes in size, so I think the data is still there.</p>
<p>So, I scoured the web l... | 102,370 | 1,161,330 | 2017-01-29 13:03:58 | 25,736,450 | 39 | 2014-09-09 03:54:50 | 1,708,713 | 2017-01-29 13:03:58 | https://stackoverflow.com/q/23202611 | https://stackoverflow.com/a/25736450 | <p>give this a shot
<a href="http://slydiman.me/eng/mmedia/recover_mp4.htm" rel="noreferrer">Official tool Link</a>
This utility can recover H.264/AVC stream from unfinalized MP4/MOV files
without (or empty) header. You may got the unfinalized file in case of damaging
camcorder during recording or such. This utility ha... | <p>give this a shot <a href="http://slydiman.me/eng/mmedia/recover_mp4.htm" rel="noreferrer">Official tool Link</a> This utility can recover H.264/AVC stream from unfinalized MP4/MOV files without (or empty) header. You may got the unfinalized file in case of damaging camcorder during recording or such. This utility ha... | 519, 1034, 4774 | corrupt, mp4, video | <h1>Repairing a Corrupt MP4 Video File</h1>
<p>I have an MP4 video that I took with a Flip camera. The camera froze up while I was stopping the recorder and now the video appears corrupt. I can still download it off the camera, but it won’t play. Now, the video is still over 2 Gigabytes in size, so I think the data is ... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,411 | perforce | # Repairing a Corrupt MP4 Video File
I have an MP4 video that I took with a Flip camera. The camera froze up while I was stopping the recorder and now the video appears corrupt. I can still download it off the camera, but it won’t play. Now, the video is still over 2 Gigabytes in size, so I think the data is still the... | give this a shot
[Official tool Link](http://slydiman.me/eng/mmedia/recover_mp4.htm)
This utility can recover H.264/AVC stream from unfinalized MP4/MOV files
without (or empty) header. You may got the unfinalized file in case of damaging
camcorder during recording or such. This utility has been tested with files
record... |
5146055 | Delete a Perforce client workspace with pending files when the workspace has already been removed from disk? | 22 | 2011-02-28 18:33:24 | <p>How do I delete a workspace that has pending files when that workspace has already been removed from disk?</p>
<h1>Caveats:</h1>
<ul>
<li>p4 command line only; not p4v gui</li>
<li>regular user access; no admin access</li>
</ul>
<h1>Scenario:</h1>
<ul>
<li>create a workspace named <code>user_workspace</code> on ... | 48,260 | 175 | 2018-04-27 20:44:42 | 5,146,327 | 38 | 2011-02-28 19:01:02 | 175 | 2011-03-02 01:27:46 | https://stackoverflow.com/q/5146055 | https://stackoverflow.com/a/5146327 | <h1>1. Revert the pending changelist</h1>
<p>Have to use Perforce depot notation instead of local directory notation because the local directory does not exist anymore.</p>
<p><code>p4 -c user_workspace revert -k //...</code></p>
<p>//blah/blah/blah/file#rev - was edit, reverted</p>
<h1>2. Delete the client workspace</... | <h1>1. Revert the pending changelist</h1> <p>Have to use Perforce depot notation instead of local directory notation because the local directory does not exist anymore.</p> <p><code>p4 -c user_workspace revert -k //...</code></p> <p>//blah/blah/blah/file#rev - was edit, reverted</p> <h1>2. Delete the client workspace</... | 456, 1286 | perforce, version-control | <h1>Delete a Perforce client workspace with pending files when the workspace has already been removed from disk?</h1>
<p>How do I delete a workspace that has pending files when that workspace has already been removed from disk?</p>
<h1>Caveats:</h1>
<ul>
<li>p4 command line only; not p4v gui</li>
<li>regular user acc... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,412 | perforce | # Delete a Perforce client workspace with pending files when the workspace has already been removed from disk?
How do I delete a workspace that has pending files when that workspace has already been removed from disk?
# Caveats:
- p4 command line only; not p4v gui
- regular user access; no admin access
# Scenario:
... | # 1. Revert the pending changelist
Have to use Perforce depot notation instead of local directory notation because the local directory does not exist anymore.
`p4 -c user_workspace revert -k //...`
//blah/blah/blah/file#rev - was edit, reverted
# 2. Delete the client workspace
`p4 client -d user_workspace`
Client... |
30898671 | Converting mkv to h264 FFmpeg | 19 | 2015-06-17 17:42:04 | <p><strong>EDIT</strong>:
This question has become very popular and is one of the top results for searching "convert mkv to h264 ffmpeg" and thus I feel it is appropriate to add that for anyone stumbling upon this question to rather use</p>
<pre><code>ffmpeg -i input.mkv -c:v libx264 -c:a aac output.mp4
</cod... | 50,174 | 5,020,853 | 2021-01-14 22:14:39 | 30,954,566 | 37 | 2015-06-20 13:33:55 | 3,004,930 | 2021-01-14 22:14:39 | https://stackoverflow.com/q/30898671 | https://stackoverflow.com/a/30954566 | <p>I suggest you first check whether your .mkv file already has H.264/AAC streams in the first place. Because if it does, all you have to do is copy the streams and change the container:</p>
<pre><code>ffmpeg -i input.mkv -c copy output.mp4
</code></pre>
<p>If it doesn't, you probably got rejected because your formats ... | <p>I suggest you first check whether your .mkv file already has H.264/AAC streams in the first place. Because if it does, all you have to do is copy the streams and change the container:</p> <pre><code>ffmpeg -i input.mkv -c copy output.mp4 </code></pre> <p>If it doesn't, you probably got rejected because your formats ... | 519, 1034, 3847, 33093, 38771 | ffmpeg, h.264, mkv, mp4, video | <h1>Converting mkv to h264 FFmpeg</h1>
<p><strong>EDIT</strong>:
This question has become very popular and is one of the top results for searching "convert mkv to h264 ffmpeg" and thus I feel it is appropriate to add that for anyone stumbling upon this question to rather use</p>
<pre><code>ffmpeg -i input.mkv... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,413 | perforce | # Converting mkv to h264 FFmpeg
**EDIT**:
This question has become very popular and is one of the top results for searching "convert mkv to h264 ffmpeg" and thus I feel it is appropriate to add that for anyone stumbling upon this question to rather use
```
ffmpeg -i input.mkv -c:v libx264 -c:a aac output.mp4
```
as ... | I suggest you first check whether your .mkv file already has H.264/AAC streams in the first place. Because if it does, all you have to do is copy the streams and change the container:
```
ffmpeg -i input.mkv -c copy output.mp4
```
If it doesn't, you probably got rejected because your formats are not compatible with .... |
18436551 | MP4 Atom Parsing - where to configure time...? | 6 | 2013-08-26 04:19:31 | <p>I've written an MP4 parser that can read atoms in an MP4 just fine, and stitch them back together - the result is a technically valid MP4 file that Quicktime can open and such, but it can't play any audio as I believe the timing/sampling information is all off. I should probably mention I'm only interested in audio.... | 11,216 | 126,768 | 2015-08-21 15:31:21 | 18,552,833 | 37 | 2013-08-31 21:06:32 | 310,196 | 2013-08-31 21:12:05 | https://stackoverflow.com/q/18436551 | https://stackoverflow.com/a/18552833 | <p>I'm going to take a stab in the dark here and say that you're not updating your <code>stbl</code> offsets properly. At least I didn't (at first glance) see your python doing that anywhere. </p>
<h1>STSC</h1>
<p>Lets start with the location of data. Packets are written into the file in terms of chunks, and the hea... | <p>I'm going to take a stab in the dark here and say that you're not updating your <code>stbl</code> offsets properly. At least I didn't (at first glance) see your python doing that anywhere. </p> <h1>STSC</h1> <p>Lets start with the location of data. Packets are written into the file in terms of chunks, and the hea... | 348, 1034, 3445 | audio, mp4, multimedia | <h1>MP4 Atom Parsing - where to configure time...?</h1>
<p>I've written an MP4 parser that can read atoms in an MP4 just fine, and stitch them back together - the result is a technically valid MP4 file that Quicktime can open and such, but it can't play any audio as I believe the timing/sampling information is all off.... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,414 | perforce | # MP4 Atom Parsing - where to configure time...?
I've written an MP4 parser that can read atoms in an MP4 just fine, and stitch them back together - the result is a technically valid MP4 file that Quicktime can open and such, but it can't play any audio as I believe the timing/sampling information is all off. I should... | I'm going to take a stab in the dark here and say that you're not updating your `stbl` offsets properly. At least I didn't (at first glance) see your python doing that anywhere.
# STSC
Lets start with the location of data. Packets are written into the file in terms of chunks, and the header tells the decoder where ea... |
2117943 | PHP: Define function with variable parameter count? | 14 | 2010-01-22 14:41:18 | <p>Is there a way to define a function in PHP that lets you define a variable amount of parameters?</p>
<p>in the language I am more familiar with it is like so:</p>
<pre><code>function myFunction(...rest){ /* rest == array of params */ return rest.length; }
myFunction("foo","bar"); // returns 2;
</code></pre>
<p>T... | 15,166 | 46,011 | 2021-02-03 23:25:28 | 2,117,964 | 36 | 2010-01-22 14:43:41 | 250,259 | 2014-04-15 14:04:47 | https://stackoverflow.com/q/2117943 | https://stackoverflow.com/a/2117964 | <p>Yes. Use <code>func_num_args()</code> and <code>func_get_arg()</code> to get the arguments:</p>
<pre><code><?php
function dynamic_args() {
echo "Number of arguments: " . func_num_args() . "<br />";
for($i = 0 ; $i < func_num_args(); $i++) {
echo "Argument $i = " . func_get_arg($i... | <p>Yes. Use <code>func_num_args()</code> and <code>func_get_arg()</code> to get the arguments:</p> <pre><code><?php function dynamic_args() { echo "Number of arguments: " . func_num_args() . "<br />"; for($i = 0 ; $i < func_num_args(); $i++) { echo "Argument $i = " . func_get_arg($i... | 5, 360, 4090, 5569 | function, parameters, php, php4 | <h1>PHP: Define function with variable parameter count?</h1>
<p>Is there a way to define a function in PHP that lets you define a variable amount of parameters?</p>
<p>in the language I am more familiar with it is like so:</p>
<pre><code>function myFunction(...rest){ /* rest == array of params */ return rest.length; ... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,416 | perforce | # PHP: Define function with variable parameter count?
Is there a way to define a function in PHP that lets you define a variable amount of parameters?
in the language I am more familiar with it is like so:
```
function myFunction(...rest){ /* rest == array of params */ return rest.length; }
myFunction("foo","bar");... | Yes. Use `func_num_args()` and `func_get_arg()` to get the arguments:
```
<?php
function dynamic_args() {
echo "Number of arguments: " . func_num_args() . "<br />";
for($i = 0 ; $i < func_num_args(); $i++) {
echo "Argument $i = " . func_get_arg($i) . "<br />";
}
}
dynamic_args("a", "... |
8269353 | How to load videos from assets folder? (to play them with VideoView) | 28 | 2011-11-25 12:46:21 | <p>I need to open a mp4 video from the assets folder and play it with VideoView.</p>
<p>I tryed with these two options, but none of them works....</p>
<pre><code>mVideoView.setVideoPath("file:///android_asset/videos.mp4");
mVideoView.requestFocus();
mVideoView.start();
</code></pre>
<p>and...</p>
<pre><code>String ... | 38,253 | 479,886 | 2018-04-27 06:45:36 | 8,269,474 | 35 | 2011-11-25 12:57:32 | 978,675 | 2011-11-25 12:57:32 | https://stackoverflow.com/q/8269353 | https://stackoverflow.com/a/8269474 | <p>I don't know how to load videos from the assets folder. But I know how to load them from the /res/raw/ folder:</p>
<pre><code>String uriPath = "android.resource://yourapplicationpackage/raw/videofilenamewithoutextension";
Uri uri = Uri.parse(uriPath);
video.setVideoURI(uri);
</code></pre>
| <p>I don't know how to load videos from the assets folder. But I know how to load them from the /res/raw/ folder:</p> <pre><code>String uriPath = "android.resource://yourapplicationpackage/raw/videofilenamewithoutextension"; Uri uri = Uri.parse(uriPath); video.setVideoURI(uri); </code></pre> | 1034, 1386, 2903 | android, assets, mp4 | <h1>How to load videos from assets folder? (to play them with VideoView)</h1>
<p>I need to open a mp4 video from the assets folder and play it with VideoView.</p>
<p>I tryed with these two options, but none of them works....</p>
<pre><code>mVideoView.setVideoPath("file:///android_asset/videos.mp4");
mVideoView.reques... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,418 | perforce | # How to load videos from assets folder? (to play them with VideoView)
I need to open a mp4 video from the assets folder and play it with VideoView.
I tryed with these two options, but none of them works....
```
mVideoView.setVideoPath("file:///android_asset/videos.mp4");
mVideoView.requestFocus();
mVideoView.start(... | I don't know how to load videos from the assets folder. But I know how to load them from the /res/raw/ folder:
```
String uriPath = "android.resource://yourapplicationpackage/raw/videofilenamewithoutextension";
Uri uri = Uri.parse(uriPath);
video.setVideoURI(uri);
``` |
36980992 | asterisk in tuple, list and set definitions, double asterisk in dict definition | 22 | 2016-05-02 11:08:05 | <p>I'm playing now with Python 3.5 interpreter and found very interesting behavior:</p>
<pre><code>>>> (1,2,3,"a",*("oi", "oi")*3)
(1, 2, 3, 'a', 'oi', 'oi', 'oi', 'oi', 'oi', 'oi')
>>> [1,2,3,"a",*range(10)]
[1, 2, 3, 'a', 0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
>>> ('aw','aw',*range(10),*(x**2 for x... | 12,592 | 1,833,960 | 2019-03-22 20:31:29 | 36,981,090 | 35 | 2016-05-02 11:13:58 | 224,671 | 2016-05-02 11:13:58 | https://stackoverflow.com/q/36980992 | https://stackoverflow.com/a/36981090 | <p>This is <a href="https://www.python.org/dev/peps/pep-0448/" rel="noreferrer">PEP-448: Additional Unpacking Generalizations</a>, which is new in Python 3.5.</p>
<p>The relevant change-log is in <a href="https://docs.python.org/3/whatsnew/3.5.html#pep-448-additional-unpacking-generalizations" rel="noreferrer">https://... | <p>This is <a href="https://www.python.org/dev/peps/pep-0448/" rel="noreferrer">PEP-448: Additional Unpacking Generalizations</a>, which is new in Python 3.5.</p> <p>The relevant change-log is in <a href="https://docs.python.org/3/whatsnew/3.5.html#pep-448-additional-unpacking-generalizations" rel="noreferrer">https://... | 16, 60010, 94173, 137509 | iterable-unpacking, pep448, python, python-3.x | <h1>asterisk in tuple, list and set definitions, double asterisk in dict definition</h1>
<p>I'm playing now with Python 3.5 interpreter and found very interesting behavior:</p>
<pre><code>>>> (1,2,3,"a",*("oi", "oi")*3)
(1, 2, 3, 'a', 'oi', 'oi', 'oi', 'oi', 'oi', 'oi')
>>> [1,2,3,"a",*range(10)]
[1,... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,419 | perforce | # asterisk in tuple, list and set definitions, double asterisk in dict definition
I'm playing now with Python 3.5 interpreter and found very interesting behavior:
```
>>> (1,2,3,"a",*("oi", "oi")*3)
(1, 2, 3, 'a', 'oi', 'oi', 'oi', 'oi', 'oi', 'oi')
>>> [1,2,3,"a",*range(10)]
[1, 2, 3, 'a', 0, 1, 2, 3, 4, 5, 6, 7, 8,... | This is [PEP-448: Additional Unpacking Generalizations](https://www.python.org/dev/peps/pep-0448/), which is new in Python 3.5.
The relevant change-log is in <https://docs.python.org/3/whatsnew/3.5.html#pep-448-additional-unpacking-generalizations>:
> PEP 448 extends the allowed uses of the `*` iterable unpacking ope... |
35087145 | Rotate a video and fit it to screen using CSS | 14 | 2016-01-29 14:40:32 | <p>I have the following style:</p>
<pre class="lang-css prettyprint-override"><code>video {
position: absolute;
transform: rotate(90deg);
width: 100%;
height: 100%;
z-index: 4;
visibility: visible;
}
</code></pre>
<p>This is the video element:</p>
<pre class="lang-html prettyprint-override"><cod... | 43,613 | 1,072,825 | 2025-10-13 10:28:19 | 35,089,806 | 35 | 2016-01-29 16:48:47 | 1,387,174 | 2016-01-29 16:48:47 | https://stackoverflow.com/q/35087145 | https://stackoverflow.com/a/35089806 | <p>This is a case where the new CSS3 units come in handy. If you just use normal percentages to specify the <code>width</code> and <code>height</code> of the <code><video></code> element, they will default to associating these dimensions with their viewport counterparts - but only prior to the rotation. So after ... | <p>This is a case where the new CSS3 units come in handy. If you just use normal percentages to specify the <code>width</code> and <code>height</code> of the <code><video></code> element, they will default to associating these dimensions with their viewport counterparts - but only prior to the rotation. So after ... | 2, 4, 519, 1034 | css, html, mp4, video | <h1>Rotate a video and fit it to screen using CSS</h1>
<p>I have the following style:</p>
<pre class="lang-css prettyprint-override"><code>video {
position: absolute;
transform: rotate(90deg);
width: 100%;
height: 100%;
z-index: 4;
visibility: visible;
}
</code></pre>
<p>This is the video elemen... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,420 | perforce | # Rotate a video and fit it to screen using CSS
I have the following style:
```
video {
position: absolute;
transform: rotate(90deg);
width: 100%;
height: 100%;
z-index: 4;
visibility: visible;
}
```
This is the video element:
```
<video id="myVideo" src="/Space4.mp4" autoplay loop></video>
... | This is a case where the new CSS3 units come in handy. If you just use normal percentages to specify the `width` and `height` of the `<video>` element, they will default to associating these dimensions with their viewport counterparts - but only prior to the rotation. So after rotation, these values will no longer corr... |
20282672 | Record, save and/or convert video in mp4 format? | 17 | 2013-11-29 09:45:07 | <p>I have the following problem - I am trying to create an app that records video, then save it to the camera roll and after that I am uploading that video to the web. The problem is that the only supported format is "mp4", but my videos are "mov". </p>
<p>So my question is how to save video from camera in "mp4" forma... | 31,417 | 2,165,644 | 2020-05-13 05:11:29 | 20,283,319 | 34 | 2013-11-29 10:14:41 | 1,540,450 | 2015-04-11 04:30:01 | https://stackoverflow.com/q/20282672 | https://stackoverflow.com/a/20283319 | <p>You are doing right thing.. Now you need to convert this mov file to mp4 as below.</p>
<pre><code>NSString *mediaType = [info objectForKey: UIImagePickerControllerMediaType];
NSString *videoPath1 = @"";
if (CFStringCompare ((__bridge_retained CFStringRef) mediaType, kUTTypeMovie, 0) == kCFCompareEqualTo)
{
if (... | <p>You are doing right thing.. Now you need to convert this mov file to mp4 as below.</p> <pre><code>NSString *mediaType = [info objectForKey: UIImagePickerControllerMediaType]; NSString *videoPath1 = @""; if (CFStringCompare ((__bridge_retained CFStringRef) mediaType, kUTTypeMovie, 0) == kCFCompareEqualTo) { if (... | 154, 519, 908, 1034, 58338 | ios, iphone, mp4, video, xcode | <h1>Record, save and/or convert video in mp4 format?</h1>
<p>I have the following problem - I am trying to create an app that records video, then save it to the camera roll and after that I am uploading that video to the web. The problem is that the only supported format is "mp4", but my videos are "mov". </p>
<p>So m... | q.PostTypeId = 1; a.PostTypeId = 2; EXISTS tag '%perforce%' OR '%p4%'; a.Body contains code block; q.Score > 5; a.Score > 10 | 24,422 | perforce | # Record, save and/or convert video in mp4 format?
I have the following problem - I am trying to create an app that records video, then save it to the camera roll and after that I am uploading that video to the web. The problem is that the only supported format is "mp4", but my videos are "mov".
So my question is how... | You are doing right thing.. Now you need to convert this mov file to mp4 as below.
```
NSString *mediaType = [info objectForKey: UIImagePickerControllerMediaType];
NSString *videoPath1 = @"";
if (CFStringCompare ((__bridge_retained CFStringRef) mediaType, kUTTypeMovie, 0) == kCFCompareEqualTo)
{
if (UIVideoAtPathI... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.