mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-02-11 03:39:15 +00:00
throw away workspace changes on repository update
This commit is contained in:
parent
673c2bf2dd
commit
037b79a0c6
@ -24,6 +24,7 @@ work in progress...
|
|||||||
* ~~Compile client for production~~
|
* ~~Compile client for production~~
|
||||||
* Semantic versioning and plugins
|
* Semantic versioning and plugins
|
||||||
* ~~Complete uncompleted builds on server start~~
|
* ~~Complete uncompleted builds on server start~~
|
||||||
|
* ~~Throw away workspace changes on repository update~~
|
||||||
|
|
||||||
Ui fixes
|
Ui fixes
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ Scm.prototype.getRev = function(rev, callback) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Updates to revision
|
* Updates to revision and throw away all local changes
|
||||||
*/
|
*/
|
||||||
Scm.prototype.update = function(rev, callback) {
|
Scm.prototype.update = function(rev, callback) {
|
||||||
};
|
};
|
||||||
|
@ -154,5 +154,5 @@ Scm.prototype.getChanges = function(rev1, rev2, callback) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
Scm.prototype.update = function(rev, callback) {
|
Scm.prototype.update = function(rev, callback) {
|
||||||
this.run({cmd: 'git', args: ['checkout', rev]}, callback);
|
this.run({cmd: 'git', args: ['checkout', '-f', rev]}, callback);
|
||||||
};
|
};
|
||||||
|
@ -113,5 +113,5 @@ Scm.prototype.getChanges = function(rev1, rev2, callback) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
Scm.prototype.update = function(rev, callback) {
|
Scm.prototype.update = function(rev, callback) {
|
||||||
this.run({cmd: 'hg', args: ['up', rev]}, callback);
|
this.run({cmd: 'hg', args: ['up', '-C', rev]}, callback);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user